diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-04-14 22:32:28 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-04-14 22:32:28 +0000 |
commit | efdf988611c1eb02770643cd3fabd5df2f579353 (patch) | |
tree | fe09f3ac8c71672b57c13a5ce279b164c0ab7454 /lib/Analysis/UninitializedValues.cpp | |
parent | ad762fcdc16b9e4705b12b09d92b8c026212b906 (diff) |
When we transform a C++ exception declaration (e.g., for template
instantiation), be sure to add the transformed declaration into the
current DeclContext. Also, remove the -Wuninitialized hack that works
around this bug. Fixes <rdar://problem/9200676>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129544 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/UninitializedValues.cpp')
-rw-r--r-- | lib/Analysis/UninitializedValues.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/Analysis/UninitializedValues.cpp b/lib/Analysis/UninitializedValues.cpp index 59a42813fc..a1a49b6757 100644 --- a/lib/Analysis/UninitializedValues.cpp +++ b/lib/Analysis/UninitializedValues.cpp @@ -394,13 +394,7 @@ public: void BlockStmt_VisitObjCForCollectionStmt(ObjCForCollectionStmt *fs); bool isTrackedVar(const VarDecl *vd) { -#if 1 - // FIXME: This is a temporary workaround to deal with the fact - // that DeclContext's do not always contain all of their variables! - return vals.hasEntry(vd); -#else return ::isTrackedVar(vd, cast<DeclContext>(ac.getDecl())); -#endif } FindVarResult findBlockVarDecl(Expr *ex); |