diff options
Diffstat (limited to 'clang/lib/Lex/PreprocessingRecord.cpp')
-rw-r--r-- | clang/lib/Lex/PreprocessingRecord.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Lex/PreprocessingRecord.cpp b/clang/lib/Lex/PreprocessingRecord.cpp index b1c0c716c1c..a4315b78d5b 100644 --- a/clang/lib/Lex/PreprocessingRecord.cpp +++ b/clang/lib/Lex/PreprocessingRecord.cpp @@ -111,7 +111,8 @@ struct PPEntityComp { } SourceLocation getLoc(PreprocessedEntity *PPE) const { - return (PPE->getSourceRange().*getRangeLoc)(); + SourceRange Range = PPE->getSourceRange(); + return (Range.*getRangeLoc)(); } }; |