From 1ac225219c99bc04eb22f8d8419c849fc89cf9c0 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 llvm-svn: 235652 --- llvm/lib/CodeGen/WinEHPrepare.cpp | 2 -- 1 file changed, 2 deletions(-) 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) { -- 2.7.4