diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2021-04-06 05:50:55 +0100 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2021-04-06 12:35:41 +0100 |
| commit | 32be124e306e537590cedcb56e6c16db7f9d8ce7 (patch) | |
| tree | f1556b2b11d22a126ad37867267ff2afe6bb9f33 /compiler/rustc_ast_lowering/src | |
| parent | cbd6ec760453b333e86aac106f47fe9132498924 (diff) | |
| download | rust-32be124e306e537590cedcb56e6c16db7f9d8ce7.tar.gz rust-32be124e306e537590cedcb56e6c16db7f9d8ce7.zip | |
Use AnonConst for asm! constants
Diffstat (limited to 'compiler/rustc_ast_lowering/src')
| -rw-r--r-- | compiler/rustc_ast_lowering/src/expr.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_ast_lowering/src/expr.rs b/compiler/rustc_ast_lowering/src/expr.rs index 32fb8d1c8f4..981a6bc0c99 100644 --- a/compiler/rustc_ast_lowering/src/expr.rs +++ b/compiler/rustc_ast_lowering/src/expr.rs @@ -1411,9 +1411,9 @@ impl<'hir> LoweringContext<'_, 'hir> { out_expr: out_expr.as_ref().map(|expr| self.lower_expr_mut(expr)), } } - InlineAsmOperand::Const { ref expr } => { - hir::InlineAsmOperand::Const { expr: self.lower_expr_mut(expr) } - } + InlineAsmOperand::Const { ref anon_const } => hir::InlineAsmOperand::Const { + anon_const: self.lower_anon_const(anon_const), + }, InlineAsmOperand::Sym { ref expr } => { hir::InlineAsmOperand::Sym { expr: self.lower_expr_mut(expr) } } |
