summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Checker')
-rw-r--r--clang/lib/Checker/IdempotentOperationChecker.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Checker/IdempotentOperationChecker.cpp b/clang/lib/Checker/IdempotentOperationChecker.cpp
index 4b06856ab55..1118d5e279d 100644
--- a/clang/lib/Checker/IdempotentOperationChecker.cpp
+++ b/clang/lib/Checker/IdempotentOperationChecker.cpp
@@ -54,6 +54,7 @@
#include "clang/Checker/PathSensitive/SVals.h"
#include "clang/AST/Stmt.h"
#include "llvm/ADT/DenseMap.h"
+#include "llvm/Support/ErrorHandling.h"
using namespace clang;
@@ -330,7 +331,7 @@ void IdempotentOperationChecker::VisitEndAnalysis(ExplodedGraph &G,
case Impossible:
break;
case Possible:
- assert(0 && "Operation was never marked with an assumption");
+ llvm_unreachable("Operation was never marked with an assumption");
}
// Create the SourceRange Arrays
OpenPOWER on IntegriCloud