summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-18 18:50:45 +0000
committerChris Lattner <sabre@nondot.org>2009-02-18 18:50:45 +0000
commit24eb28bcf822ce2f4415d2a1697c53f9ea815d55 (patch)
treedbe59c341d51d98be908ad85e8ad380a88915412 /clang
parent259971431d7ff5402ee893c58a5f3b9adf26815b (diff)
downloadbcm5719-llvm-24eb28bcf822ce2f4415d2a1697c53f9ea815d55.tar.gz
bcm5719-llvm-24eb28bcf822ce2f4415d2a1697c53f9ea815d55.zip
tidy up
llvm-svn: 64934
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Driver/TextDiagnosticPrinter.cpp4
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));
OpenPOWER on IntegriCloud