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

for pointing this out.

llvm-svn: 90015
This commit is contained in:
Nick Lewycky 2009-11-27 19:57:53 +00:00
parent d141f885a1
commit 6e0525141f
1 changed files with 1 additions and 1 deletions

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;
}