From: Richard Smith Date: Fri, 1 Aug 2014 22:17:28 +0000 (+0000) Subject: Actually fix problem with modules buildbot this time. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c274828e7f3c589d1f0e327494b371781d3de981;p=clang Actually fix problem with modules buildbot this time. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214579 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 33325b24e5..08063352f2 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/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);