try to evaluate in from_opt_const_arg_anon_const
This commit is contained in:
parent
d0e05f0426
commit
9b28d3b494
2 changed files with 78 additions and 8 deletions
|
@ -491,8 +491,11 @@ impl<'tcx> Cx<'tcx> {
|
|||
hir::InlineAsmOperand::Const { ref anon_const } => {
|
||||
let anon_const_def_id =
|
||||
self.tcx.hir().local_def_id(anon_const.hir_id);
|
||||
let value =
|
||||
mir::ConstantKind::from_anon_const(self.tcx, anon_const_def_id);
|
||||
let value = mir::ConstantKind::from_anon_const(
|
||||
self.tcx,
|
||||
anon_const_def_id,
|
||||
self.param_env,
|
||||
);
|
||||
let span = self.tcx.hir().span(anon_const.hir_id);
|
||||
|
||||
InlineAsmOperand::Const { value, span }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue