diff options
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r-- | clang/lib/Sema/Sema.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index 7f0e4769c58..bcac88a43d3 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -687,7 +687,7 @@ bool Sema::findMacroSpelling(SourceLocation &locref, StringRef name) { // There's no good way right now to look at the intermediate // instantiations, so just jump to the instantiation location. - loc = getSourceManager().getInstantiationLoc(loc); + loc = getSourceManager().getExpansionLoc(loc); // If that's written with the name, stop here. SmallVector<char, 16> buffer; |