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 | 40965fa78a991c41527a2bed0d8c5c822e3d5afe (patch) | |
tree | e528a5c008a3dfbc48355ffaba3a860bab5dbb8c /clang/lib/Analysis/UninitializedValues.cpp | |
parent | eb0e0b19b049bd8813c0faa36319a70ab0fb9b3f (diff) | |
download | bcm5719-llvm-40965fa78a991c41527a2bed0d8c5c822e3d5afe.tar.gz bcm5719-llvm-40965fa78a991c41527a2bed0d8c5c822e3d5afe.zip |
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>.
llvm-svn: 129544
Diffstat (limited to 'clang/lib/Analysis/UninitializedValues.cpp')
-rw-r--r-- | clang/lib/Analysis/UninitializedValues.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/lib/Analysis/UninitializedValues.cpp b/clang/lib/Analysis/UninitializedValues.cpp index 59a42813fc5..a1a49b6757f 100644 --- a/clang/lib/Analysis/UninitializedValues.cpp +++ b/clang/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); |