Do not attempt cprop on vector ops that are not implemented.

This commit is contained in:
Chris Fallin 2024-03-27 22:39:17 -07:00
parent 8e42abe91b
commit 0691e48ed8

View file

@ -1172,11 +1172,7 @@ pub fn const_eval(
Some(ConstVal::None) Some(ConstVal::None)
}), }),
(_, args) if args.iter().any(|&arg| arg == ConstVal::None) => None, (_, args) if args.iter().any(|&arg| arg == ConstVal::None) => None,
(op, args) => unimplemented!( _ => None,
"Undefined operator or arg combination: {:?}, {:?}",
op,
args
),
} }
} }