summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/debuginfo
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2018-09-25 15:07:27 +0200
committerRalf Jung <post@ralfj.de>2018-09-29 09:50:50 +0200
commite37d6d37e76a8b2f82eacc8c3f642c4d47093950 (patch)
treef95f3a9fd051f0e43893299d5533cba5ad7b144d /src/librustc_codegen_llvm/debuginfo
parent6622172734a6c456ea85e17b765ad1dbc0e42907 (diff)
downloadrust-e37d6d37e76a8b2f82eacc8c3f642c4d47093950.tar.gz
rust-e37d6d37e76a8b2f82eacc8c3f642c4d47093950.zip
Revert "Auto merge of #53508 - japaric:maybe-uninit, r=RalfJung"
This reverts commit c6e3d7fa3113aaa64602507f39d4627c427742ff, reversing
changes made to 4591a245c7eec9f70d668982b1383cd2a6854af5.
Diffstat (limited to 'src/librustc_codegen_llvm/debuginfo')
-rw-r--r--src/librustc_codegen_llvm/debuginfo/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/debuginfo/mod.rs b/src/librustc_codegen_llvm/debuginfo/mod.rs
index 7b0c413e857..99919a940b4 100644
--- a/src/librustc_codegen_llvm/debuginfo/mod.rs
+++ b/src/librustc_codegen_llvm/debuginfo/mod.rs
@@ -279,7 +279,7 @@ pub fn create_function_debug_context(
         }
         None => {}
     };
-    if cx.layout_of(sig.output()).abi.is_uninhabited() {
+    if cx.layout_of(sig.output()).abi == ty::layout::Abi::Uninhabited {
         flags = flags | DIFlags::FlagNoReturn;
     }