diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-08-22 21:37:04 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-08-22 21:37:04 +0000 |
commit | 93be0b24b85dd57cc1ec5e46aa657668f90829e4 (patch) | |
tree | 221ee40cfef2b7e071b6bd0e39411e482e44c207 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | cfe910b9d45a1e1a6af7fa85706fe464497f2b73 (diff) | |
download | llvm-93be0b24b85dd57cc1ec5e46aa657668f90829e4.zip llvm-93be0b24b85dd57cc1ec5e46aa657668f90829e4.tar.gz llvm-93be0b24b85dd57cc1ec5e46aa657668f90829e4.tar.bz2 |
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.
llvm-svn: 216288
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 04294ec..6d21e78 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -535,7 +535,7 @@ public: } }; - class LexicalScope: protected RunCleanupsScope { + class LexicalScope : public RunCleanupsScope { SourceRange Range; SmallVector<const LabelDecl*, 4> Labels; LexicalScope *ParentScope; |