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)
llvm-svn: 214579

clang/lib/CodeGen/CodeGenModule.cpp

index 33325b2..0806335 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);