From b75863d53b8a2bbf0ece8e6df2b6e5be7f3896c4 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 10 Apr 2009 00:35:59 +0000 Subject: reject codegen of __thread variables as unimplemented, rdar://6775265 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68755 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenFunction.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/CodeGen/CodeGenFunction.cpp') diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index 5b63e6594d..b9a803286c 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -231,11 +231,10 @@ void CodeGenFunction::GenerateCode(const FunctionDecl *FD, EmitStmt(FD->getBody()); const CompoundStmt *S = dyn_cast(FD->getBody()); - if (S) { + if (S) FinishFunction(S->getRBracLoc()); - } else { + else FinishFunction(); - } // Destroy the 'this' declaration. if (CXXThisDecl) -- cgit v1.2.3-18-g5258