Value *operand = ii->getOperand(oi);
Type *operand_type = operand->getType();
- switch (operand_type->getTypeID()) {
- default:
- break;
- case Type::VectorTyID: {
+ // Vectors are currently unsupported, give up.
+ if (operand_type->getTypeID() == Type::VectorTyID)
if (log)
log->Printf("Unsupported operand type: %s",
PrintType(operand_type).c_str());
error.SetErrorString(unsupported_operand_error);
return false;
- }
- }
// The IR interpreter currently doesn't know about
// 128-bit integers. As they're not that frequent,
return false;
}
- if (Constant *constant = llvm::dyn_cast<Constant>(operand)) {
+ if (auto *constant = llvm::dyn_cast<Constant>(operand)) {
if (!CanResolveConstant(constant)) {
if (log)
log->Printf("Unsupported constant: %s",