From 173a68d4a2e92dfc1815af5d06f55ac6ec242958 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Thu, 23 Apr 2015 21:36:32 +0000 Subject: [PATCH] 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 --- lib/CodeGen/WinEHPrepare.cpp | 2 -- 1 file changed, 2 deletions(-) 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) { -- 2.34.1