about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm
diff options
context:
space:
mode:
authorWesley Wiser <wesleywiser@microsoft.com>2021-04-26 14:39:57 -0400
committerWesley Wiser <wesleywiser@microsoft.com>2021-06-02 10:23:09 -0400
commitf353cbf1a145603e1f69c2aaaef171dd60ca4c65 (patch)
treea1c3d4644264c06372c83a621fff2d50e152c070 /compiler/rustc_codegen_llvm/src/llvm
parent1e13a9bb33debb931d603278b7f1a706b0d11660 (diff)
downloadrust-f353cbf1a145603e1f69c2aaaef171dd60ca4c65.tar.gz
rust-f353cbf1a145603e1f69c2aaaef171dd60ca4c65.zip
Generate better debuginfo for directly tagged enums
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm/ffi.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
index 8b1dcea3fa2..54ef1a28468 100644
--- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
@@ -2038,7 +2038,7 @@ extern "C" {
 
     pub fn LLVMRustDIBuilderCreateUnionType(
         Builder: &DIBuilder<'a>,
-        Scope: &'a DIScope,
+        Scope: Option<&'a DIScope>,
         Name: *const c_char,
         NameLen: size_t,
         File: &'a DIFile,