summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-03-28 05:24:50 +0000
committerTed Kremenek <kremenek@apple.com>2012-03-28 05:24:50 +0000
commit41daf12e2c1081cf2e4e4597fbf2ae069b4a0cae (patch)
treeae93546240e7360ddb45bbea409f5301f21f04cd /clang/lib/StaticAnalyzer/Core/BugReporter.cpp
parent2337cb7e6e708c203e6cfb85a8413c9dbf38467b (diff)
downloadbcm5719-llvm-41daf12e2c1081cf2e4e4597fbf2ae069b4a0cae.tar.gz
bcm5719-llvm-41daf12e2c1081cf2e4e4597fbf2ae069b4a0cae.zip
Fix suspicious comparison reported by PVS-Studio!
llvm-svn: 153568
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/BugReporter.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/BugReporter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
index 643469d7e56..9186321a5a5 100644
--- a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
+++ b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
@@ -925,7 +925,7 @@ bool EdgeBuilder::containsLocation(const PathDiagnosticLocation &Container,
SM.getExpansionColumnNumber(ContaineeRBeg)) &&
(ContainerEndLine != ContaineeEndLine ||
SM.getExpansionColumnNumber(ContainerREnd) >=
- SM.getExpansionColumnNumber(ContainerREnd)));
+ SM.getExpansionColumnNumber(ContaineeREnd)));
}
void EdgeBuilder::rawAddEdge(PathDiagnosticLocation NewLoc) {
OpenPOWER on IntegriCloud