diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-26 20:15:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-26 20:15:46 +0000 |
commit | 7e20927756bc885a1d1cbd2a2c904c09b1260ef8 (patch) | |
tree | fe1249024161a6edb4ad427bd43c5c1cea6337a3 /clang/lib/Lex/Lexer.cpp | |
parent | 2d86c700bfb4f4c3345a8ab897ed841082a69005 (diff) | |
download | bcm5719-llvm-7e20927756bc885a1d1cbd2a2c904c09b1260ef8.tar.gz bcm5719-llvm-7e20927756bc885a1d1cbd2a2c904c09b1260ef8.zip |
allow _Pragmas formed from #defines to keep their full instantiation
history
llvm-svn: 63035
Diffstat (limited to 'clang/lib/Lex/Lexer.cpp')
-rw-r--r-- | clang/lib/Lex/Lexer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp index 03d81b3b9a1..7f14e7a4a2d 100644 --- a/clang/lib/Lex/Lexer.cpp +++ b/clang/lib/Lex/Lexer.cpp @@ -321,10 +321,9 @@ static SourceLocation GetMappedTokenLoc(Preprocessor &PP, // Create a new SLoc which is expanded from Instantiation(FileLoc) but whose // characters come from spelling(FileLoc)+Offset. - SourceLocation InstLoc = SourceMgr.getInstantiationLoc(FileLoc); SourceLocation SpellingLoc = SourceMgr.getSpellingLoc(FileLoc); SpellingLoc = SpellingLoc.getFileLocWithOffset(CharNo); - return SourceMgr.createInstantiationLoc(SpellingLoc, InstLoc, TokLen); + return SourceMgr.createInstantiationLoc(SpellingLoc, FileLoc, TokLen); } /// getSourceLocation - Return a source location identifier for the specified |