mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-13 01:15:32 +00:00
Don't add the 'Value' string if there isn't one.
This was causing the folding set to fail to fold attributes, because it was being calculated in one spot without an empty values string but here with an empty values string. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176301 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c5a4c25b87
commit
40c81fe501
@ -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!
|
||||
|
Loading…
x
Reference in New Issue
Block a user