diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-02-21 12:34:21 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-02-21 12:34:30 +0100 |
| commit | b0f870edd63c671645647c7bb9026b3e0e5f0966 (patch) | |
| tree | 4c9b4e9fc1664fe29675d13321511a6c262340da | |
| parent | ee36a1fbb1e7a2d7e7eaa044eaf68e21e04be3b4 (diff) | |
| download | rust-b0f870edd63c671645647c7bb9026b3e0e5f0966.tar.gz rust-b0f870edd63c671645647c7bb9026b3e0e5f0966.zip | |
Fix CI
| -rw-r--r-- | src/codegen_i128.rs | 6 | ||||
| -rw-r--r-- | src/pointer.rs | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/codegen_i128.rs b/src/codegen_i128.rs index 7b674df446a..ed9097e5a5b 100644 --- a/src/codegen_i128.rs +++ b/src/codegen_i128.rs @@ -11,7 +11,11 @@ pub(crate) fn maybe_codegen<'tcx>( lhs: CValue<'tcx>, rhs: CValue<'tcx>, ) -> Option<CValue<'tcx>> { - if lhs.layout().ty != fx.tcx.types.u128 && lhs.layout().ty != fx.tcx.types.i128 { + if lhs.layout().ty != fx.tcx.types.u128 + && lhs.layout().ty != fx.tcx.types.i128 + && rhs.layout().ty != fx.tcx.types.u128 + && rhs.layout().ty != fx.tcx.types.i128 + { return None; } diff --git a/src/pointer.rs b/src/pointer.rs index d08d878c45b..7b31d0a2007 100644 --- a/src/pointer.rs +++ b/src/pointer.rs @@ -167,9 +167,7 @@ impl Pointer { ) -> Value { match self.base { PointerBase::Addr(base_addr) => fx.bcx.ins().load(ty, flags, base_addr, self.offset), - PointerBase::Stack(stack_slot) => { - fx.bcx.ins().stack_load(ty, stack_slot, self.offset) - } + PointerBase::Stack(stack_slot) => fx.bcx.ins().stack_load(ty, stack_slot, self.offset), PointerBase::Dangling(_align) => unreachable!(), } } |
