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) {