fix some copy-pasto in llvm2alive switch cases
MODIFY
llvm_util/llvm2alive.cpp
llvm_util/llvm2alive.cpp
@@ -1020,7 +1020,7 @@ public:
{
PARSE_UNOP();
FpConversionOp::Op op;
- switch (i.getOpcode()) {
+ switch (i.getIntrinsicID()) {
case llvm::Intrinsic::experimental_constrained_sitofp: op = FpConversionOp::SIntToFP; break;
case llvm::Intrinsic::experimental_constrained_uitofp: op = FpConversionOp::UIntToFP; break;
case llvm::Intrinsic::experimental_constrained_fptosi: op = FpConversionOp::FPToSInt; break;
@@ -1045,7 +1045,7 @@ public:
{
PARSE_BINOP();
TestOp::Op op;
- switch (i.getOpcode()) {
+ switch (i.getIntrinsicID()) {
case llvm::Intrinsic::is_fpclass: op = TestOp::Is_FPClass; break;
default: UNREACHABLE();
}

fix some copy-pasto in llvm2alive switch cases