aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/cxx-uninitialized-object.cpp
diff options
context:
space:
mode:
authorArtem Dergachev <artem.dergachev@gmail.com>2019-04-03 18:21:16 +0000
committerArtem Dergachev <artem.dergachev@gmail.com>2019-04-03 18:21:16 +0000
commit132cebd5567b9fe9544e12e1592dde70177b2bec (patch)
tree50d4b897553af07e6aef4d6a08a6b7d025b4168e /test/Analysis/cxx-uninitialized-object.cpp
parent456575d0e83a9cbf7e35e844a431a0f3ec58c582 (diff)
Revert "[analyzer] Toning down invalidation a bit".
This reverts commit r352473. The overall idea is great, but it seems to cause unintented consequences when not only Region Store invalidation but also pointer escape mechanism was accidentally affected. Based on discussions in https://reviews.llvm.org/D58121#1452483 and https://reviews.llvm.org/D57230#1434161 Differential Revision: https://reviews.llvm.org/D57230 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@357620 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/cxx-uninitialized-object.cpp')
-rw-r--r--test/Analysis/cxx-uninitialized-object.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Analysis/cxx-uninitialized-object.cpp b/test/Analysis/cxx-uninitialized-object.cpp
index 93a02a4838..07006bea47 100644
--- a/test/Analysis/cxx-uninitialized-object.cpp
+++ b/test/Analysis/cxx-uninitialized-object.cpp
@@ -358,7 +358,7 @@ template <class T>
void wontInitialize(const T &);
class PassingToUnknownFunctionTest1 {
- int a, b; // expected-note{{uninitialized field 'this->b'}}
+ int a, b;
public:
PassingToUnknownFunctionTest1() {
@@ -368,7 +368,8 @@ public:
}
PassingToUnknownFunctionTest1(int) {
- mayInitialize(a); // expected-warning{{1 uninitialized field at the end of the constructor call}}
+ mayInitialize(a);
+ // All good!
}
PassingToUnknownFunctionTest1(int, int) {