diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2020-03-03 02:07:15 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2020-03-03 03:46:45 +0100 |
| commit | df716b0e37ed087b8bce20bc04c23efd0fa5b645 (patch) | |
| tree | cad3815ce3d3dfed1bdad385d1f039fe6e6169da /src/librustc_codegen_llvm | |
| parent | 18c275b423f9f13c0e404ae3804967d2ab66337c (diff) | |
| download | rust-df716b0e37ed087b8bce20bc04c23efd0fa5b645.tar.gz rust-df716b0e37ed087b8bce20bc04c23efd0fa5b645.zip | |
use conditions directly
Diffstat (limited to 'src/librustc_codegen_llvm')
| -rw-r--r-- | src/librustc_codegen_llvm/va_arg.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustc_codegen_llvm/va_arg.rs b/src/librustc_codegen_llvm/va_arg.rs index 9bc3eec60ae..a552f2cdb78 100644 --- a/src/librustc_codegen_llvm/va_arg.rs +++ b/src/librustc_codegen_llvm/va_arg.rs @@ -117,8 +117,7 @@ pub(super) fn emit_va_arg( // Windows x86_64 ("x86_64", true) => { let target_ty_size = bx.cx.size_of(target_ty).bytes(); - let indirect = - if target_ty_size > 8 || !target_ty_size.is_power_of_two() { true } else { false }; + let indirect: bool = target_ty_size > 8 || !target_ty_size.is_power_of_two(); emit_ptr_va_arg(bx, addr, target_ty, indirect, Align::from_bytes(8).unwrap(), false) } // For all other architecture/OS combinations fall back to using |
