]> granicus.if.org Git - clang/commitdiff
tidy up
authorChris Lattner <sabre@nondot.org>
Wed, 18 Feb 2009 18:50:45 +0000 (18:50 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 18 Feb 2009 18:50:45 +0000 (18:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64934 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/TextDiagnosticPrinter.cpp

index a9d011a6cb79f308b1f0c60258d181df8850445a..39a4328ae3680b27cacc62858310e43065f23848 100644 (file)
@@ -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));