Remove a redundant #ifndef and add an assertion string.
authorDan Gohman <gohman@apple.com>
Mon, 28 Sep 2009 14:38:19 +0000 (14:38 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 28 Sep 2009 14:38:19 +0000 (14:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82991 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/LCSSA.cpp

index b510262c05cad858ea5f83d8a0082191d376d180..48e6a17a0661f8b69912337fccbe6713fc3378f3 100644 (file)
@@ -90,10 +90,8 @@ namespace {
 
     /// verifyAnalysis() - Verify loop nest.
     virtual void verifyAnalysis() const {
-#ifndef NDEBUG
       // Check the special guarantees that LCSSA makes.
-      assert(L->isLCSSAForm());
-#endif
+      assert(L->isLCSSAForm() && "LCSSA form not preserved!");
     }
 
     void getLoopValuesUsedOutsideLoop(Loop *L,