1
Fork 0

derive Copy for WrappingRange and Scalar

This commit is contained in:
Andreas Liljeqvist 2021-08-28 11:04:23 +02:00
parent 4c46296f22
commit 021c3346ed
2 changed files with 6 additions and 6 deletions

View file

@ -300,7 +300,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
let llval = operand.immediate();
let mut signed = false;
if let Abi::Scalar(ref scalar) = operand.layout.abi {
if let Abi::Scalar(scalar) = operand.layout.abi {
if let Int(_, s) = scalar.value {
// We use `i1` for bytes that are always `0` or `1`,
// e.g., `#[repr(i8)] enum E { A, B }`, but we can't