[llvm] r223806 - Fix a GCC build failure from r223802
Duncan P. N. Exon Smith
dexonsmith at apple.com
Tue Dec 9 10:52:38 PST 2014
Author: dexonsmith
Date: Tue Dec 9 12:52:38 2014
New Revision: 223806
URL: http://llvm.org/viewvc/llvm-project?rev=223806&view=rev
Log:
Fix a GCC build failure from r223802
Modified:
llvm/trunk/lib/IR/Metadata.cpp
Modified: llvm/trunk/lib/IR/Metadata.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Metadata.cpp?rev=223806&r1=223805&r2=223806&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Metadata.cpp (original)
+++ llvm/trunk/lib/IR/Metadata.cpp Tue Dec 9 12:52:38 2014
@@ -341,7 +341,8 @@ MDString *MDString::get(LLVMContext &Con
if (I != Store.end())
return &I->second;
- auto *Entry = StringMapEntry<MDString>::Create(Str, Store.getAllocator());
+ auto *Entry =
+ StringMapEntry<MDString>::Create(Str, Store.getAllocator(), MDString());
bool WasInserted = Store.insert(Entry);
(void)WasInserted;
assert(WasInserted && "Expected entry to be inserted");
More information about the llvm-commits
mailing list