[llvm-branch-commits] [cfe-branch] r71863 - /cfe/branches/Apple/Dib/lib/Analysis/BugReporter.cpp
Mike Stump
mrs at apple.com
Fri May 15 09:16:04 PDT 2009
Author: mrs
Date: Fri May 15 11:16:00 2009
New Revision: 71863
URL: http://llvm.org/viewvc/llvm-project?rev=71863&view=rev
Log:
Merge in 71832:
BugReporter (extensive diagnostics): Do not include the range of target '}'
Modified:
cfe/branches/Apple/Dib/lib/Analysis/BugReporter.cpp
Modified: cfe/branches/Apple/Dib/lib/Analysis/BugReporter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/Dib/lib/Analysis/BugReporter.cpp?rev=71863&r1=71862&r2=71863&view=diff
==============================================================================
--- cfe/branches/Apple/Dib/lib/Analysis/BugReporter.cpp (original)
+++ cfe/branches/Apple/Dib/lib/Analysis/BugReporter.cpp Fri May 15 11:16:00 2009
@@ -865,7 +865,7 @@
void popLocation() {
if (!CLocs.back().isDead() && CLocs.back().asLocation().isFileID()) {
// For contexts, we only one the first character as the range.
- rawAddEdge( cleanUpLocation(CLocs.back(), true));
+ rawAddEdge(cleanUpLocation(CLocs.back(), true));
}
CLocs.pop_back();
}
@@ -1139,14 +1139,16 @@
PathDiagnosticEventPiece *p =
new PathDiagnosticEventPiece(L,
- "Looping back to the head of the loop");
+ "Looping back to the head of the loop");
EB.addEdge(p->getLocation(), true);
PD.push_front(p);
if (CS) {
- EB.addEdge(PathDiagnosticLocation(CS->getRBracLoc(),
- PDB.getSourceManager()));
+ PathDiagnosticLocation BL(CS->getRBracLoc(),
+ PDB.getSourceManager());
+ BL = PathDiagnosticLocation(BL.asLocation());
+ EB.addEdge(BL);
}
}
More information about the llvm-branch-commits
mailing list