about summary refs log tree commit diff
path: root/compiler/rustc_const_eval
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-08-25 19:18:01 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2022-08-26 10:53:41 +1000
commitb853e8a6194637751bffbcfdd5bb51c7bfecdff5 (patch)
tree2c15425811ff1409c2ee32eb0f47b0d046bdce68 /compiler/rustc_const_eval
parentfeeaa4db3cb990463871e35b16b3449023cb791d (diff)
downloadrust-b853e8a6194637751bffbcfdd5bb51c7bfecdff5.tar.gz
rust-b853e8a6194637751bffbcfdd5bb51c7bfecdff5.zip
Turn `ArgAbi::pad` into a `bool`.
Because it's only ever set to `None` or `Some(Reg::i32())`.
Diffstat (limited to 'compiler/rustc_const_eval')
-rw-r--r--compiler/rustc_const_eval/src/interpret/terminator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/terminator.rs b/compiler/rustc_const_eval/src/interpret/terminator.rs
index 27bb828feac..2fcdf6ded98 100644
--- a/compiler/rustc_const_eval/src/interpret/terminator.rs
+++ b/compiler/rustc_const_eval/src/interpret/terminator.rs
@@ -216,7 +216,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
             }
         };
         // Padding must be fully equal.
-        let pad_compat = || caller_abi.pad == callee_abi.pad;
+        let pad_compat = || caller_abi.pad_i32 == callee_abi.pad_i32;
         // When comparing the PassMode, we have to be smart about comparing the attributes.
         let arg_attr_compat = |a1: &ArgAttributes, a2: &ArgAttributes| {
             // There's only one regular attribute that matters for the call ABI: InReg.