diff options
author | John McCall <rjmccall@apple.com> | 2010-10-15 04:57:14 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-10-15 04:57:14 +0000 |
commit | b6bbcc9995186799a60ce17d0c1acff31601653a (patch) | |
tree | b77c28179567896d71c528c70ae0d2837496c9e3 /lib/CodeGen/CGStmt.cpp | |
parent | 66c42d443982a0891ce58deb7391d641ca87adc5 (diff) |
Death to blocks, or at least the word "block" in one particular obnoxiously
ambiguous context.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116567 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | lib/CodeGen/CGStmt.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp index e83bea6d58..008c07514e 100644 --- a/lib/CodeGen/CGStmt.cpp +++ b/lib/CodeGen/CGStmt.cpp @@ -320,7 +320,7 @@ void CodeGenFunction::EmitIfStmt(const IfStmt &S) { RunCleanupsScope ConditionScope(*this); if (S.getConditionVariable()) - EmitLocalBlockVarDecl(*S.getConditionVariable()); + EmitAutoVarDecl(*S.getConditionVariable()); // If the condition constant folds and can be elided, try to avoid emitting // the condition and the dead arm of the if/else. @@ -395,7 +395,7 @@ void CodeGenFunction::EmitWhileStmt(const WhileStmt &S) { RunCleanupsScope ConditionScope(*this); if (S.getConditionVariable()) - EmitLocalBlockVarDecl(*S.getConditionVariable()); + EmitAutoVarDecl(*S.getConditionVariable()); // Evaluate the conditional in the while header. C99 6.8.5.1: The // evaluation of the controlling expression takes place before each @@ -527,7 +527,7 @@ void CodeGenFunction::EmitForStmt(const ForStmt &S) { // declaration. llvm::BasicBlock *ExitBlock = LoopExit.getBlock(); if (S.getConditionVariable()) { - EmitLocalBlockVarDecl(*S.getConditionVariable()); + EmitAutoVarDecl(*S.getConditionVariable()); } // If there are any cleanups between here and the loop-exit scope, @@ -798,7 +798,7 @@ void CodeGenFunction::EmitSwitchStmt(const SwitchStmt &S) { RunCleanupsScope ConditionScope(*this); if (S.getConditionVariable()) - EmitLocalBlockVarDecl(*S.getConditionVariable()); + EmitAutoVarDecl(*S.getConditionVariable()); llvm::Value *CondV = EmitScalarExpr(S.getCond()); |