Oops! Fix bug introduced in my recent cleanup change. Thanks to Tobias Grosser

for pointing this out.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90015 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nick Lewycky 2009-11-27 19:57:53 +00:00
parent 253be4ddb2
commit 807d2fa1eb

View File

@ -42,7 +42,7 @@ MDString *MDString::get(LLVMContext &Context, const char *Str) {
StringMapEntry<MDString *> &Entry =
pImpl->MDStringCache.GetOrCreateValue(Str ? StringRef(Str) : StringRef());
MDString *&S = Entry.getValue();
if (!S) new MDString(Context, Entry.getKey());
if (!S) S = new MDString(Context, Entry.getKey());
return S;
}