diff options
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/Driver/TextDiagnosticPrinter.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Driver/TextDiagnosticPrinter.cpp b/clang/lib/Driver/TextDiagnosticPrinter.cpp index a9d011a6cb7..39a4328ae36 100644 --- a/clang/lib/Driver/TextDiagnosticPrinter.cpp +++ b/clang/lib/Driver/TextDiagnosticPrinter.cpp @@ -109,9 +109,7 @@ void TextDiagnosticPrinter::EmitCaretDiagnostic(const DiagnosticInfo &Info, // We always emit diagnostics about the instantiation points, not the spelling // points. This more closely correlates to what the user writes. if (!Loc.isFileID()) { - SourceLocation OneLevelUp; - OneLevelUp = SM.getImmediateInstantiationRange(Loc).first; - + SourceLocation OneLevelUp = SM.getImmediateInstantiationRange(Loc).first; EmitCaretDiagnostic(Info, OneLevelUp, SM); Loc = SM.getInstantiationLoc(SM.getImmediateSpellingLoc(Loc)); |