forked from OSchip/llvm-project
parent
b74e279fe1
commit
3d5925b0e4
|
@ -279,7 +279,7 @@ static bool isTrivialSingleTokenExpansion(const MacroInfo *MI,
|
|||
// If the identifier is a macro, and if that macro is enabled, it may be
|
||||
// expanded so it's not a trivial expansion.
|
||||
if (auto *ExpansionMI = PP.getMacroInfo(II))
|
||||
if (PP.getMacroInfo(II)->isEnabled() &&
|
||||
if (ExpansionMI->isEnabled() &&
|
||||
// Fast expanding "#define X X" is ok, because X would be disabled.
|
||||
II != MacroIdent)
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue