]> granicus.if.org Git - clang/commit
DebugInfo: Scope for condition variables more narrowly than the loop variable.
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 22 Aug 2014 21:37:04 +0000 (21:37 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 22 Aug 2014 21:37:04 +0000 (21:37 +0000)
commitf256e04534c85bab1452837b7d93c13a56ed23e8
tree92cbbb312b85c52b6dd6d0870e959a321164cf07
parent9375a83a5d4a3fef4418c3f4ba46bbc05dd3db52
DebugInfo: Scope for condition variables more narrowly than the loop variable.

for loops introduce two scopes - one for the outer loop variable and its
initialization, and another for the body of the loop, including any
variable declared inside the loop condition.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216288 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGStmt.cpp
lib/CodeGen/CodeGenFunction.h
test/CodeGenCXX/debug-info-scope.cpp