mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
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:
parent
253be4ddb2
commit
807d2fa1eb
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user