]> granicus.if.org Git - clang/commitdiff
Actually fix problem with modules buildbot this time.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 1 Aug 2014 22:17:28 +0000 (22:17 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 1 Aug 2014 22:17:28 +0000 (22:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214579 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenModule.cpp

index 33325b24e5a20c7d5d7e1311d07ad25579fe90d6..08063352f210476fe906bed187f4d7167d51afc7 100644 (file)
@@ -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);