From: Chris Lattner Date: Wed, 18 Feb 2009 18:50:45 +0000 (+0000) Subject: tidy up X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=609b3ab97bdbdb46941c7ee5549269eb0a660412;p=clang tidy up git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64934 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/TextDiagnosticPrinter.cpp b/lib/Driver/TextDiagnosticPrinter.cpp index a9d011a6cb..39a4328ae3 100644 --- a/lib/Driver/TextDiagnosticPrinter.cpp +++ b/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));