diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-18 18:50:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-18 18:50:45 +0000 |
commit | 24eb28bcf822ce2f4415d2a1697c53f9ea815d55 (patch) | |
tree | dbe59c341d51d98be908ad85e8ad380a88915412 /clang | |
parent | 259971431d7ff5402ee893c58a5f3b9adf26815b (diff) | |
download | bcm5719-llvm-24eb28bcf822ce2f4415d2a1697c53f9ea815d55.tar.gz bcm5719-llvm-24eb28bcf822ce2f4415d2a1697c53f9ea815d55.zip |
tidy up
llvm-svn: 64934
Diffstat (limited to 'clang')
-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)); |