]> granicus.if.org Git - clang/commit
Fix PR9741. The implicit declarations created for range-based for loops weren't being...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 18 Apr 2011 15:49:25 +0000 (15:49 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 18 Apr 2011 15:49:25 +0000 (15:49 +0000)
commitb403d6d746239095a2c7bac958c924d92434e2b4
treef18cc7c2e026f9d9e7c3cbd330b9ddb892fd6363
parente84260513dc9fc17904c30c9400c5862a2d7fcb8
Fix PR9741. The implicit declarations created for range-based for loops weren't being added to the DeclContext (nor were they being marked as implicit). Also, the declarations were being emitted in the wrong order when building the CFG.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129700 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/CFG.cpp
lib/Sema/SemaStmt.cpp
test/Analysis/PR9741.cpp [new file with mode: 0644]