Use CGM.CreateOrReplaceCXXRuntimeVariable in CGVTables.cpp

llvm-svn: 124538
This commit is contained in:
Anders Carlsson
2011-01-29 18:25:07 +00:00
parent da80af3681
commit 93be9a90cc
2 changed files with 5 additions and 48 deletions

View File

@@ -1000,7 +1000,7 @@ CodeGenModule::CreateOrReplaceCXXRuntimeVariable(llvm::StringRef Name,
// Because C++ name mangling, the only way we can end up with an already
// existing global with the same name is if it has been declared extern "C".
assert(GV->isDeclaration() && "Declaration has wrong type!");
assert(GV->isDeclaration() && "Declaration has wrong type!");
OldGV = GV;
}