[llvm] r235652 - Remove trivial assert to fix NDEBUG Werror builds

Reid Kleckner reid at kleckner.net
Thu Apr 23 14:36:32 PDT 2015


Author: rnk
Date: Thu Apr 23 16:36:32 2015
New Revision: 235652

URL: http://llvm.org/viewvc/llvm-project?rev=235652&view=rev
Log:
Remove trivial assert to fix NDEBUG Werror builds

Modified:
    llvm/trunk/lib/CodeGen/WinEHPrepare.cpp

Modified: llvm/trunk/lib/CodeGen/WinEHPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/WinEHPrepare.cpp?rev=235652&r1=235651&r2=235652&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/WinEHPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/WinEHPrepare.cpp Thu Apr 23 16:36:32 2015
@@ -716,8 +716,6 @@ bool WinEHPrepare::prepareExceptionHandl
         continue;
       assert(E->getNumIndices() == 1 &&
              "Unexpected operation: extracting both landing pad values");
-      unsigned Idx = E->getIndices()[0];
-      assert(Idx == 0 || Idx == 1);
       Extracts.push_back(E);
     }
     for (Instruction *E : Extracts) {





More information about the llvm-commits mailing list