Fix unused variable warning.

llvm-svn: 236178
This commit is contained in:
Richard Smith 2015-04-29 23:26:13 +00:00
parent b74e279fe1
commit 3d5925b0e4
1 changed files with 1 additions and 1 deletions

View File

@ -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;