diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-04-22 04:45:57 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-04-22 04:45:57 +0000 |
commit | 9a1724bf3dc126f4e4d4b9e4c617f9b06b756c7d (patch) | |
tree | 994792920d0e07cdb557a9f82f3397d2935dd102 /llvm/lib/Object/IRObjectFile.cpp | |
parent | e9cffafdf71771af6c5af38f4901e69753c923f8 (diff) | |
download | bcm5719-llvm-9a1724bf3dc126f4e4d4b9e4c617f9b06b756c7d.tar.gz bcm5719-llvm-9a1724bf3dc126f4e4d4b9e4c617f9b06b756c7d.zip |
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@apple.com>
llvm-svn: 267104
Diffstat (limited to 'llvm/lib/Object/IRObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/IRObjectFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/IRObjectFile.cpp b/llvm/lib/Object/IRObjectFile.cpp index 8184e04a3ae..efa30b036bd 100644 --- a/llvm/lib/Object/IRObjectFile.cpp +++ b/llvm/lib/Object/IRObjectFile.cpp @@ -40,7 +40,7 @@ IRObjectFile::IRObjectFile(MemoryBufferRef Object, std::unique_ptr<Module> Mod) 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))); }); } |