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://review.tizen.org/git/?a=commitdiff_plain;h=1ac225219c99bc04eb22f8d8419c849fc89cf9c0;p=platform%2Fupstream%2Fllvm.git Remove trivial assert to fix NDEBUG Werror builds llvm-svn: 235652 --- diff --git a/llvm/lib/CodeGen/WinEHPrepare.cpp b/llvm/lib/CodeGen/WinEHPrepare.cpp index 4dd1962..a1da1ae 100644 --- a/llvm/lib/CodeGen/WinEHPrepare.cpp +++ b/llvm/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) {