diff options
author | Justin Bogner <mail@justinbogner.com> | 2013-11-04 16:13:18 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2013-11-04 16:13:18 +0000 |
commit | 085e28e4a6109f13d111d3e3fa5f6eea18bcf414 (patch) | |
tree | 55c04870c73ac9ab15f1365b368d977cf86828ea /clang/lib/CodeGen/CGStmt.cpp | |
parent | 8a80aa76c81c2bed7939938ffc6754850bf46488 (diff) | |
download | bcm5719-llvm-085e28e4a6109f13d111d3e3fa5f6eea18bcf414.tar.gz bcm5719-llvm-085e28e4a6109f13d111d3e3fa5f6eea18bcf414.zip |
CodeGen: Move an initialization away from an unrelated comment
An initialization somehow found its way in between a comment and the
block of code the comment is about. Moving the initialization makes
this less confusing.
llvm-svn: 193993
Diffstat (limited to 'clang/lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index 24082240b5a..497a4909442 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -643,11 +643,11 @@ void CodeGenFunction::EmitForStmt(const ForStmt &S) { if (S.getCond()) { // If the for statement has a condition scope, emit the local variable // declaration. - llvm::BasicBlock *ExitBlock = LoopExit.getBlock(); if (S.getConditionVariable()) { EmitAutoVarDecl(*S.getConditionVariable()); } + llvm::BasicBlock *ExitBlock = LoopExit.getBlock(); // If there are any cleanups between here and the loop-exit scope, // create a block to stage a loop exit along. if (ForScope.requiresCleanups()) |