Skip to content

Commit 5b9aaf6

Browse files
authored
Merge pull request #75706 from bnbarham/fix-header-guard-change
[ClangImporter] Correct check to ignore macro
2 parents ae938d0 + 2269b42 commit 5b9aaf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ClangImporter/ImportName.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2378,7 +2378,7 @@ static bool shouldIgnoreMacro(StringRef name, const clang::MacroInfo *macro,
23782378
if (macro->isUsedForHeaderGuard() && macro->getNumTokens() == 1) {
23792379
auto tok = macro->tokens()[0];
23802380
if (tok.is(clang::tok::numeric_constant) && tok.getLength() == 1 &&
2381-
PP.getSpellingOfSingleCharacterNumericConstant(tok) == '1')
2381+
PP.getSpellingOfSingleCharacterNumericConstant(tok) == 1)
23822382
return true;
23832383
}
23842384

0 commit comments

Comments
 (0)