projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't add the 'Value' string if there isn't one.
[oota-llvm.git]
/
lib
/
IR
/
AttributeImpl.h
diff --git
a/lib/IR/AttributeImpl.h
b/lib/IR/AttributeImpl.h
index cb2c55ccbe78931ebc15aef74c0063b467cf9701..ad2670dade12577aacfe40f3de3fa1d082721437 100644
(file)
--- a/
lib/IR/AttributeImpl.h
+++ b/
lib/IR/AttributeImpl.h
@@
-146,7
+146,7
@@
public:
}
static void Profile(FoldingSetNodeID &ID, StringRef Kind, StringRef Values) {
ID.AddString(Kind);
- ID.AddString(Values);
+
if (!Values.empty())
ID.AddString(Values);
}
// FIXME: Remove this!