[cfe-commits] r107741 - /cfe/trunk/lib/Checker/IdempotentOperationChecker.cpp
Chandler Carruth
chandlerc at gmail.com
Tue Jul 6 17:07:37 PDT 2010
Author: chandlerc
Date: Tue Jul 6 19:07:37 2010
New Revision: 107741
URL: http://llvm.org/viewvc/llvm-project?rev=107741&view=rev
Log:
Use 'llvm_unreachable' to mark impossible code paths so that GCC doesn't
consider them for warnings.
Modified:
cfe/trunk/lib/Checker/IdempotentOperationChecker.cpp
Modified: cfe/trunk/lib/Checker/IdempotentOperationChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Checker/IdempotentOperationChecker.cpp?rev=107741&r1=107740&r2=107741&view=diff
==============================================================================
--- cfe/trunk/lib/Checker/IdempotentOperationChecker.cpp (original)
+++ cfe/trunk/lib/Checker/IdempotentOperationChecker.cpp Tue Jul 6 19:07:37 2010
@@ -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 @@
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
More information about the cfe-commits
mailing list