diff options
| author | Steve Naroff <snaroff@apple.com> | 2009-04-15 16:58:41 +0000 |
|---|---|---|
| committer | Steve Naroff <snaroff@apple.com> | 2009-04-15 16:58:41 +0000 |
| commit | 6f84266619acb29707ebd2c1d3f50b8fb17b83cf (patch) | |
| tree | adce2b98bc9627a704f0b90053de386a55696fca /clang/lib | |
| parent | e6c831deb226938db304918f43efa0100b3d129e (diff) | |
| download | bcm5719-llvm-6f84266619acb29707ebd2c1d3f50b8fb17b83cf.tar.gz bcm5719-llvm-6f84266619acb29707ebd2c1d3f50b8fb17b83cf.zip | |
Revert previous patch (will commit a fix soon).
llvm-svn: 69178
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 8b7e26de225..a2984657168 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -2935,11 +2935,10 @@ void Sema::RecursiveCalcLabelScopes(llvm::DenseMap<Stmt*, void*>& LabelScopeMap, Stmt* CurCompound = isa<CompoundStmt>(*i) ? *i : ParentCompoundStmt; RecursiveCalcLabelScopes(LabelScopeMap, PopScopeMap, ScopeStack, *i, CurCompound); - while (ScopeStack.size() && PopScopeMap[ScopeStack.back()] == CurStmt) { - ScopeStack.pop_back(); - } } - + while (ScopeStack.size() && PopScopeMap[ScopeStack.back()] == CurStmt) { + ScopeStack.pop_back(); + } } void Sema::RecursiveCalcJumpScopes(llvm::DenseMap<Stmt*, void*>& LabelScopeMap, @@ -2970,9 +2969,9 @@ void Sema::RecursiveCalcJumpScopes(llvm::DenseMap<Stmt*, void*>& LabelScopeMap, if (isa<DeclStmt>(*i)) continue; RecursiveCalcJumpScopes(LabelScopeMap, PopScopeMap, GotoScopeMap, ScopeStack, *i); - while (ScopeStack.size() && PopScopeMap[ScopeStack.back()] == CurStmt) { - ScopeStack.pop_back(); - } + } + while (ScopeStack.size() && PopScopeMap[ScopeStack.back()] == CurStmt) { + ScopeStack.pop_back(); } } |

