summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker
diff options
context:
space:
mode:
authorTom Care <tcare@apple.com>2010-07-07 01:27:17 +0000
committerTom Care <tcare@apple.com>2010-07-07 01:27:17 +0000
commitca1f871ff8efda88b820c6242d7909e56536abb3 (patch)
tree66eca1e77b8c4ca86968698023329f11af1cd2f6 /clang/lib/Checker
parent8f5472a8e8795880f1d6b653710914233b171d3a (diff)
downloadbcm5719-llvm-ca1f871ff8efda88b820c6242d7909e56536abb3.tar.gz
bcm5719-llvm-ca1f871ff8efda88b820c6242d7909e56536abb3.zip
Change explicit handling of impossible condition to call llvm_unreachable in IdempotentOperationChecker::PreVisitBinaryOperator.
llvm-svn: 107748
Diffstat (limited to 'clang/lib/Checker')
-rw-r--r--clang/lib/Checker/IdempotentOperationChecker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Checker/IdempotentOperationChecker.cpp b/clang/lib/Checker/IdempotentOperationChecker.cpp
index 646c6aff1f6..6ed18417a2c 100644
--- a/clang/lib/Checker/IdempotentOperationChecker.cpp
+++ b/clang/lib/Checker/IdempotentOperationChecker.cpp
@@ -328,10 +328,10 @@ void IdempotentOperationChecker::VisitEndAnalysis(ExplodedGraph &G,
case RHSis0:
msg = "idempotent operation; the right operand is always 0";
break;
- case Impossible:
- break;
case Possible:
llvm_unreachable("Operation was never marked with an assumption");
+ case Impossible:
+ llvm_unreachable(0);
}
// Create the SourceRange Arrays
OpenPOWER on IntegriCloud