aboutsummaryrefslogtreecommitdiff
path: root/lib/Checker/IdempotentOperationChecker.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-07-07 00:07:37 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-07-07 00:07:37 +0000
commit256565b1e33fe62aa1274f0ed19f92ea24029bd3 (patch)
treeb05ad8eb773d16704e79cef653ed17f285f59f54 /lib/Checker/IdempotentOperationChecker.cpp
parent744016dde06fcffd50931e94a98c850f8b12cd87 (diff)
Use 'llvm_unreachable' to mark impossible code paths so that GCC doesn't
consider them for warnings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107741 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/IdempotentOperationChecker.cpp')
-rw-r--r--lib/Checker/IdempotentOperationChecker.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Checker/IdempotentOperationChecker.cpp b/lib/Checker/IdempotentOperationChecker.cpp
index 4b06856ab5..1118d5e279 100644
--- a/lib/Checker/IdempotentOperationChecker.cpp
+++ b/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