[cfe-commits] r64934 - /cfe/trunk/lib/Driver/TextDiagnosticPrinter.cpp

Chris Lattner sabre at nondot.org
Wed Feb 18 10:50:45 PST 2009


Author: lattner
Date: Wed Feb 18 12:50:45 2009
New Revision: 64934

URL: http://llvm.org/viewvc/llvm-project?rev=64934&view=rev
Log:
tidy up

Modified:
    cfe/trunk/lib/Driver/TextDiagnosticPrinter.cpp

Modified: cfe/trunk/lib/Driver/TextDiagnosticPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/TextDiagnosticPrinter.cpp?rev=64934&r1=64933&r2=64934&view=diff

==============================================================================
--- cfe/trunk/lib/Driver/TextDiagnosticPrinter.cpp (original)
+++ cfe/trunk/lib/Driver/TextDiagnosticPrinter.cpp Wed Feb 18 12:50:45 2009
@@ -109,9 +109,7 @@
   // 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));





More information about the cfe-commits mailing list