aboutsummaryrefslogtreecommitdiff
path: root/Lex/MacroExpander.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Lex/MacroExpander.cpp')
-rw-r--r--Lex/MacroExpander.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lex/MacroExpander.cpp b/Lex/MacroExpander.cpp
index 7a46b14297..c98949ec1d 100644
--- a/Lex/MacroExpander.cpp
+++ b/Lex/MacroExpander.cpp
@@ -499,8 +499,8 @@ void MacroExpander::Lex(LexerToken &Tok) {
// The token could have come from a prior macro expansion. In that case,
// ignore the macro expand part to get to the physloc. This happens for
// stuff like: #define A(X) X A(A(X)) A(1)
- SourceLocation PhysLoc = SrcMgr.getPhysicalLoc(Tok.getLocation());
- Tok.setLocation(SrcMgr.getInstantiationLoc(PhysLoc, InstantiateLoc));
+ Tok.setLocation(SrcMgr.getInstantiationLoc(Tok.getLocation(),
+ InstantiateLoc));
}
// If this is the first token, set the lexical properties of the token to