diff options
Diffstat (limited to 'clang/lib/Lex/Lexer.cpp')
| -rw-r--r-- | clang/lib/Lex/Lexer.cpp | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp index 25e6113..6c7169f 100644 --- a/clang/lib/Lex/Lexer.cpp +++ b/clang/lib/Lex/Lexer.cpp @@ -713,8 +713,7 @@ bool Lexer::isAtStartOfMacroExpansion(SourceLocation loc,      return false; // Does not point at the start of token.    SourceLocation expansionLoc = -    SM.getSLocEntry(infoLoc.first) -      .getInstantiation().getExpansionLocStart(); +    SM.getSLocEntry(infoLoc.first).getExpansion().getExpansionLocStart();    if (expansionLoc.isFileID())      return true; // No other macro expansions, this is the first. @@ -744,7 +743,7 @@ bool Lexer::isAtEndOfMacroExpansion(SourceLocation loc,      return false; // Still in the same FileID, does not point to the last token.    SourceLocation expansionLoc = -    SM.getSLocEntry(FID).getInstantiation().getExpansionLocEnd(); +    SM.getSLocEntry(FID).getExpansion().getExpansionLocEnd();    if (expansionLoc.isFileID())      return true; // No other macro expansions.  | 
