diff options
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 5b63e6594d3..b9a803286c4 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -231,11 +231,10 @@ void CodeGenFunction::GenerateCode(const FunctionDecl *FD, EmitStmt(FD->getBody()); const CompoundStmt *S = dyn_cast<CompoundStmt>(FD->getBody()); - if (S) { + if (S) FinishFunction(S->getRBracLoc()); - } else { + else FinishFunction(); - } // Destroy the 'this' declaration. if (CXXThisDecl) |