InterpCx
store TypingEnv
instead of a ParamEnv
This commit is contained in:
parent
a4acd22dbb
commit
bf45e9f7f3
1 changed files with 5 additions and 1 deletions
|
@ -744,7 +744,11 @@ fn codegen_regular_intrinsic_call<'tcx>(
|
||||||
|
|
||||||
let const_val = fx
|
let const_val = fx
|
||||||
.tcx
|
.tcx
|
||||||
.const_eval_instance(ty::ParamEnv::reveal_all(), instance, source_info.span)
|
.const_eval_instance(
|
||||||
|
ty::TypingEnv::fully_monomorphized(),
|
||||||
|
instance,
|
||||||
|
source_info.span,
|
||||||
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let val = crate::constant::codegen_const_value(fx, const_val, ret.layout().ty);
|
let val = crate::constant::codegen_const_value(fx, const_val, ret.layout().ty);
|
||||||
ret.write_cvalue(fx, val);
|
ret.write_cvalue(fx, val);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue