diff options
| author | oli <github35764891676564198441@oli-obk.de> | 2020-11-01 16:57:03 +0000 |
|---|---|---|
| committer | oli <github35764891676564198441@oli-obk.de> | 2020-11-04 10:11:31 +0000 |
| commit | df4d717d0b150375057bd067356a4c7fe3c27551 (patch) | |
| tree | 6bf4b702f8d3d69a244c908c52f293ed3994a7ca /compiler/rustc_codegen_llvm/src | |
| parent | 3a7970848cf3b525e94357fc9b01053b1ad15bcd (diff) | |
| download | rust-df4d717d0b150375057bd067356a4c7fe3c27551.tar.gz rust-df4d717d0b150375057bd067356a4c7fe3c27551.zip | |
s/Scalar::Raw/Scalar::Int
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/common.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/common.rs b/compiler/rustc_codegen_llvm/src/common.rs index 8bcb8b62076..34e1b7a6045 100644 --- a/compiler/rustc_codegen_llvm/src/common.rs +++ b/compiler/rustc_codegen_llvm/src/common.rs @@ -230,11 +230,11 @@ impl ConstMethods<'tcx> for CodegenCx<'ll, 'tcx> { fn scalar_to_backend(&self, cv: Scalar, layout: &abi::Scalar, llty: &'ll Type) -> &'ll Value { let bitsize = if layout.is_bool() { 1 } else { layout.value.size(self).bits() }; match cv { - Scalar::Raw(ScalarInt::ZST) => { + Scalar::Int(ScalarInt::ZST) => { assert_eq!(0, layout.value.size(self).bytes()); self.const_undef(self.type_ix(0)) } - Scalar::Raw(int) => { + Scalar::Int(int) => { let data = int.assert_bits(layout.value.size(self)); let llval = self.const_uint_big(self.type_ix(bitsize), data); if layout.value == Pointer { |
