diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2019-11-07 16:54:25 +0200 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2019-11-07 16:54:25 +0200 |
| commit | ccde510c95887a2a94e2ad194a7c166dd0c9bc63 (patch) | |
| tree | f0aa2c2a6d9a7eab9a777c947d84ba25f1852081 /src/librustc_codegen_llvm/debuginfo | |
| parent | 50f8aadd746ebc929a752e5ffb133936ee75c52f (diff) | |
| download | rust-ccde510c95887a2a94e2ad194a7c166dd0c9bc63.tar.gz rust-ccde510c95887a2a94e2ad194a7c166dd0c9bc63.zip | |
rustc_target: inline abi::FloatTy into abi::Primitive.
Diffstat (limited to 'src/librustc_codegen_llvm/debuginfo')
| -rw-r--r-- | src/librustc_codegen_llvm/debuginfo/metadata.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_codegen_llvm/debuginfo/metadata.rs b/src/librustc_codegen_llvm/debuginfo/metadata.rs index 5f18bb1700c..f1bf4511131 100644 --- a/src/librustc_codegen_llvm/debuginfo/metadata.rs +++ b/src/librustc_codegen_llvm/debuginfo/metadata.rs @@ -1904,8 +1904,8 @@ fn prepare_enum_metadata( let discr_type = match discr.value { layout::Int(t, _) => t, - layout::Float(layout::FloatTy::F32) => Integer::I32, - layout::Float(layout::FloatTy::F64) => Integer::I64, + layout::F32 => Integer::I32, + layout::F64 => Integer::I64, layout::Pointer => cx.data_layout().ptr_sized_integer(), }.to_ty(cx.tcx, false); |
