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)
|
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
|
|
||||||
),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue