about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/debuginfo
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2019-11-07 16:54:25 +0200
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2019-11-07 16:54:25 +0200
commitccde510c95887a2a94e2ad194a7c166dd0c9bc63 (patch)
treef0aa2c2a6d9a7eab9a777c947d84ba25f1852081 /src/librustc_codegen_llvm/debuginfo
parent50f8aadd746ebc929a752e5ffb133936ee75c52f (diff)
downloadrust-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.rs4
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);