]> granicus.if.org Git - clang/commit
Rework construction of CXXForRangeStmt not to recycle the same DeclRefExpr in multipl...
authorTed Kremenek <kremenek@apple.com>
Mon, 10 Oct 2011 22:36:28 +0000 (22:36 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 10 Oct 2011 22:36:28 +0000 (22:36 +0000)
commite50b01531afcb4afc40d27720afa09613ddcdfa2
tree777dcbe1d08aec98253a00523c53b55cafbb49d1
parent57165bea7cdbafdafe0e8e4c4b174f4abba29f7b
Rework construction of CXXForRangeStmt not to recycle the same DeclRefExpr in multiple subexpressions.  This breaks the tree structure
of the AST and completely breaks the CFG invariants.

Patch by Jim Goodnow II and reviewed by Richard Smith!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141586 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaStmt.cpp