Fix a tablegen pattern that results in a warning; NFC

We were generating `1 || 1` which caused some issues for -Werror builds
This commit is contained in:
Aaron Ballman
2025-06-16 07:49:20 -04:00
parent ddea4fe85a
commit 4f7b5e6d83

View File

@@ -3739,7 +3739,8 @@ static void GenerateHasAttrSpellingStringSwitch(
: '(' + itostr(Version) + ')';
if (Scope.empty() || Scope == Spelling.nameSpace()) {
if (TestStringMap.contains(Spelling.name()))
if (TestStringMap.contains(Spelling.name()) &&
TestStringMap[Spelling.name()] != TestStr)
TestStringMap[Spelling.name()] += " || " + TestStr;
else
TestStringMap[Spelling.name()] = TestStr;