[unwind removal] Don't write out the dead 'unwind' instruction.

llvm-svn: 149905
This commit is contained in:
Bill Wendling
2012-02-06 21:30:37 +00:00
parent 7e2863b416
commit 7c49a0e9e3

View File

@@ -1184,9 +1184,6 @@ static void WriteInstruction(const Instruction &I, unsigned InstID,
Code = bitc::FUNC_CODE_INST_RESUME;
PushValueAndType(I.getOperand(0), InstID, Vals, VE);
break;
case Instruction::Unwind:
Code = bitc::FUNC_CODE_INST_UNWIND;
break;
case Instruction::Unreachable:
Code = bitc::FUNC_CODE_INST_UNREACHABLE;
AbbrevToUse = FUNCTION_INST_UNREACHABLE_ABBREV;