r236178 - Fix unused variable warning.
Richard Smith
richard-llvm at metafoo.co.uk
Wed Apr 29 16:26:14 PDT 2015
Author: rsmith
Date: Wed Apr 29 18:26:13 2015
New Revision: 236178
URL: http://llvm.org/viewvc/llvm-project?rev=236178&view=rev
Log:
Fix unused variable warning.
Modified:
cfe/trunk/lib/Lex/PPMacroExpansion.cpp
Modified: cfe/trunk/lib/Lex/PPMacroExpansion.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPMacroExpansion.cpp?rev=236178&r1=236177&r2=236178&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/PPMacroExpansion.cpp (original)
+++ cfe/trunk/lib/Lex/PPMacroExpansion.cpp Wed Apr 29 18:26:13 2015
@@ -279,7 +279,7 @@ static bool isTrivialSingleTokenExpansio
// 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;
More information about the cfe-commits
mailing list