aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Lex/Preprocessor.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/Lex/Preprocessor.h')
-rw-r--r--include/clang/Lex/Preprocessor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h
index b48ce38998..a94c8c1d84 100644
--- a/include/clang/Lex/Preprocessor.h
+++ b/include/clang/Lex/Preprocessor.h
@@ -455,7 +455,7 @@ public:
/// location in the appropriate MemoryBuffer.
char getPhysicalCharacterAt(SourceLocation SL) const {
if (PTH) {
- SL = SourceMgr.getPhysicalLoc(SL);
+ SL = SourceMgr.getSpellingLoc(SL);
unsigned fid = SourceMgr.getCanonicalFileID(SL);
unsigned fpos = SourceMgr.getFullFilePos(SL);
const char* data;