From 570706dd7cb27bc3fcd05221a5168a6d85199410 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 1 Aug 2014 22:17:28 +0000 Subject: [PATCH] Actually fix problem with modules buildbot this time. llvm-svn: 214579 --- clang/lib/CodeGen/CodeGenModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 33325b2..08063352 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -3247,7 +3247,7 @@ void CodeGenModule::EmitTargetMetadata() { // loop over those declarations for which we couldn't emit the target // metadata when we emitted the declaration. for (unsigned I = 0; I != MangledDeclNames.size(); ++I) { - auto &Val = *(MangledDeclNames.begin() + I); + auto Val = *(MangledDeclNames.begin() + I); const Decl *D = Val.first.getDecl()->getMostRecentDecl(); llvm::GlobalValue *GV = GetGlobalValue(Val.second); getTargetCodeGenInfo().emitTargetMD(D, GV, *this); -- 2.7.4