[llvm-commits] [polly] r157244 - /polly/trunk/lib/Analysis/ScopInfo.cpp

Tobias Grosser grosser at fim.uni-passau.de
Tue May 22 03:47:21 PDT 2012


Author: grosser
Date: Tue May 22 05:47:21 2012
New Revision: 157244

URL: http://llvm.org/viewvc/llvm-project?rev=157244&view=rev
Log:
Replace some asserts with llvm_unreachable

Modified:
    polly/trunk/lib/Analysis/ScopInfo.cpp

Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=157244&r1=157243&r2=157244&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Tue May 22 05:47:21 2012
@@ -126,11 +126,11 @@
   }
 
   __isl_give isl_pw_aff *visitTruncateExpr(const SCEVTruncateExpr *Expr) {
-    assert(0 && "Not yet supported");
+    llvm_unreachable("SCEVTruncateExpr not yet supported");
   }
 
   __isl_give isl_pw_aff *visitZeroExtendExpr(const SCEVZeroExtendExpr *Expr) {
-    assert(0 && "Not yet supported");
+    llvm_unreachable("SCEVZeroExtendExpr not yet supported");
   }
 
   __isl_give isl_pw_aff *visitSignExtendExpr(const SCEVSignExtendExpr *Expr) {
@@ -172,7 +172,7 @@
   }
 
   __isl_give isl_pw_aff *visitUDivExpr(const SCEVUDivExpr *Expr) {
-    assert(0 && "Not yet supported");
+    llvm_unreachable("SCEVUDivExpr not yet supported");
   }
 
   int getLoopDepth(const Loop *L) {
@@ -214,7 +214,7 @@
   }
 
   __isl_give isl_pw_aff *visitUMaxExpr(const SCEVUMaxExpr *Expr) {
-    assert(0 && "Not yet supported");
+    llvm_unreachable("SCEVUMaxExpr not yet supported");
   }
 
   __isl_give isl_pw_aff *visitUnknown(const SCEVUnknown *Expr) {





More information about the llvm-commits mailing list