derive Copy for WrappingRange and Scalar
This commit is contained in:
parent
4c46296f22
commit
021c3346ed
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue