diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-13 17:57:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-13 17:57:11 +0000 |
commit | d8d760ce661e61db913f72bc328be062d6aa8c83 (patch) | |
tree | 278c32e6223b0d06a66e0d81671681b2aa3008cd | |
parent | cfa3e7ae6ac43775f5623003d131cb68a97e13a0 (diff) | |
download | bcm5719-llvm-d8d760ce661e61db913f72bc328be062d6aa8c83.tar.gz bcm5719-llvm-d8d760ce661e61db913f72bc328be062d6aa8c83.zip |
unbreak tests.
llvm-svn: 101153
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index b323c77be64..4a415d371fe 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -718,17 +718,17 @@ void CodeGenModule::EmitGlobalDefinition(GlobalDecl GD) { if (isa<CXXMethodDecl>(D)) getVTables().EmitVTableRelatedData(GD); - if (isa<FunctionDecl>(D)) - return EmitGlobalFunctionDefinition(GD); - - if (const VarDecl *VD = dyn_cast<VarDecl>(D)) - return EmitGlobalVarDefinition(VD); - if (const CXXConstructorDecl *CD = dyn_cast<CXXConstructorDecl>(D)) return EmitCXXConstructor(CD, GD.getCtorType()); if (const CXXDestructorDecl *DD = dyn_cast<CXXDestructorDecl>(D)) return EmitCXXDestructor(DD, GD.getDtorType()); + + if (isa<FunctionDecl>(D)) + return EmitGlobalFunctionDefinition(GD); + + if (const VarDecl *VD = dyn_cast<VarDecl>(D)) + return EmitGlobalVarDefinition(VD); assert(0 && "Invalid argument to EmitGlobalDefinition()"); } |