From b5e8156ebd6accd27daeaae6971597c45d5e5139 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 13 Apr 2010 17:57:11 +0000 Subject: unbreak tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101153 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/CodeGen/CodeGenModule.cpp') diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index b323c77be6..4a415d371f 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -718,17 +718,17 @@ void CodeGenModule::EmitGlobalDefinition(GlobalDecl GD) { if (isa(D)) getVTables().EmitVTableRelatedData(GD); - if (isa(D)) - return EmitGlobalFunctionDefinition(GD); - - if (const VarDecl *VD = dyn_cast(D)) - return EmitGlobalVarDefinition(VD); - if (const CXXConstructorDecl *CD = dyn_cast(D)) return EmitCXXConstructor(CD, GD.getCtorType()); if (const CXXDestructorDecl *DD = dyn_cast(D)) return EmitCXXDestructor(DD, GD.getDtorType()); + + if (isa(D)) + return EmitGlobalFunctionDefinition(GD); + + if (const VarDecl *VD = dyn_cast(D)) + return EmitGlobalVarDefinition(VD); assert(0 && "Invalid argument to EmitGlobalDefinition()"); } -- cgit v1.2.3-70-g09d2