Do not attempt cprop on vector ops that are not implemented.
This commit is contained in:
parent
8e42abe91b
commit
0691e48ed8
|
@ -1172,11 +1172,7 @@ pub fn const_eval(
|
|||
Some(ConstVal::None)
|
||||
}),
|
||||
(_, args) if args.iter().any(|&arg| arg == ConstVal::None) => None,
|
||||
(op, args) => unimplemented!(
|
||||
"Undefined operator or arg combination: {:?}, {:?}",
|
||||
op,
|
||||
args
|
||||
),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue