[llvm] r267104 - Use std::move on the enum to insert it into the pair to please MSVC

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 21 21:45:58 PDT 2016


Author: mehdi_amini
Date: Thu Apr 21 23:45:57 2016
New Revision: 267104

URL: http://llvm.org/viewvc/llvm-project?rev=267104&view=rev
Log:
Use std::move on the enum to insert it into the pair to please MSVC

(I have no idea why is it needed)
Fixup for r267103

From: Mehdi Amini <mehdi.amini at apple.com>

Modified:
    llvm/trunk/lib/Object/IRObjectFile.cpp

Modified: llvm/trunk/lib/Object/IRObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/IRObjectFile.cpp?rev=267104&r1=267103&r2=267104&view=diff
==============================================================================
--- llvm/trunk/lib/Object/IRObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/IRObjectFile.cpp Thu Apr 21 23:45:57 2016
@@ -40,7 +40,7 @@ IRObjectFile::IRObjectFile(MemoryBufferR
   Mang.reset(new Mangler());
   CollectAsmUndefinedRefs(*M, [this](StringRef Name,
                                      BasicSymbolRef::Flags Flags) {
-    AsmSymbols.push_back(std::make_pair<std::string, uint32_t>(Name, Flags));
+    AsmSymbols.push_back(std::make_pair<std::string, uint32_t>(Name, std::move(Flags)));
   });
 }
 




More information about the llvm-commits mailing list