llvm2alive: fix crash in insertvalue - issue
MODIFY
llvm_util/llvm2alive.cpp
llvm_util/llvm2alive.cpp
@@ -488,7 +488,7 @@ end:
auto ty = llvm_type2alive(i.getType());
auto val = get_operand(i.getAggregateOperand());
auto elt = get_operand(i.getInsertedValueOperand());
- if (!ty || !val)
+ if (!ty || !val || !elt)
return error(i);
auto inst = make_unique<InsertValue>(*ty, value_name(i), *val, *elt);

llvm2alive: fix crash in insertvalue - issue #542 (#544)