File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2829,17 +2829,18 @@ class Preprocessor {
2829
2829
}
2830
2830
2831
2831
void emitMacroExpansionWarnings (const Token &Identifier) const {
2832
- if (Identifier.getIdentifierInfo ()->isDeprecatedMacro ())
2832
+ IdentifierInfo *Info = Identifier.getIdentifierInfo ();
2833
+ if (Info->isDeprecatedMacro ())
2833
2834
emitMacroDeprecationWarning (Identifier);
2834
2835
2835
- if (Identifier. getIdentifierInfo () ->isRestrictExpansion () &&
2836
+ if (Info ->isRestrictExpansion () &&
2836
2837
!SourceMgr.isInMainFile (Identifier.getLocation ()))
2837
2838
emitRestrictExpansionWarning (Identifier);
2838
2839
2839
- if (Identifier. getIdentifierInfo () ->getName () == " INFINITY" )
2840
+ if (Info ->getName () == " INFINITY" )
2840
2841
if (getLangOpts ().NoHonorInfs )
2841
2842
emitRestrictInfNaNWarning (Identifier, 0 );
2842
- if (Identifier. getIdentifierInfo () ->getName () == " NAN" )
2843
+ if (Info ->getName () == " NAN" )
2843
2844
if (getLangOpts ().NoHonorNaNs )
2844
2845
emitRestrictInfNaNWarning (Identifier, 1 );
2845
2846
}
You can’t perform that action at this time.
0 commit comments