From ae498b321182c8ee7c3fd29b78a3b83a72430c68 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 6 May 2010 22:18:21 +0000 Subject: The global variable for the VTT might not have external linkage; allow us to find local variables, too. Fixes the last remaining Boost.Rational failure. llvm-svn: 103203 --- clang/lib/CodeGen/CGVTT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CGVTT.cpp') diff --git a/clang/lib/CodeGen/CGVTT.cpp b/clang/lib/CodeGen/CGVTT.cpp index 15e564810f8..61c74230e11 100644 --- a/clang/lib/CodeGen/CGVTT.cpp +++ b/clang/lib/CodeGen/CGVTT.cpp @@ -378,7 +378,7 @@ CodeGenVTables::GenerateVTT(llvm::GlobalVariable::LinkageTypes Linkage, D1(printf("vtt %s\n", RD->getNameAsCString())); - llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name); + llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name, true); if (GV == 0 || GV->isDeclaration()) { const llvm::Type *Int8PtrTy = llvm::Type::getInt8PtrTy(CGM.getLLVMContext()); -- cgit v1.2.3