From: Reid Kleckner Date: Thu, 23 Apr 2015 21:36:32 +0000 (+0000) Subject: Remove trivial assert to fix NDEBUG Werror builds X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=173a68d4a2e92dfc1815af5d06f55ac6ec242958;hp=93a23a3bd468b78a9f550a21d70ce2525962f235 Remove trivial assert to fix NDEBUG Werror builds git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235652 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/WinEHPrepare.cpp b/lib/CodeGen/WinEHPrepare.cpp index 4dd19629dad..a1da1aefd8f 100644 --- a/lib/CodeGen/WinEHPrepare.cpp +++ b/lib/CodeGen/WinEHPrepare.cpp @@ -716,8 +716,6 @@ bool WinEHPrepare::prepareExceptionHandlers( 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) {