projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
253be4d
)
Oops! Fix bug introduced in my recent cleanup change. Thanks to Tobias Grosser
author
Nick Lewycky
<nicholas@mxc.ca>
Fri, 27 Nov 2009 19:57:53 +0000
(19:57 +0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Fri, 27 Nov 2009 19:57:53 +0000
(19:57 +0000)
for pointing this out.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90015
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Metadata.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Metadata.cpp
b/lib/VMCore/Metadata.cpp
index 854f86cecf9471f0eb509b468482fc5c565bd102..b80b6bfebc436e224b61290a18a6da34821d942f 100644
(file)
--- a/
lib/VMCore/Metadata.cpp
+++ b/
lib/VMCore/Metadata.cpp
@@
-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;
}