about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/debuginfo
diff options
context:
space:
mode:
authorDenis Merigoux <denis.merigoux@gmail.com>2018-09-24 10:51:13 +0200
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2018-11-16 14:34:26 +0200
commitb14f3e54906b9e0e8906affd406923bb8fc12b1e (patch)
tree51bcc9ba1cfc34789935297b1d6f62bb66310d72 /src/librustc_codegen_llvm/debuginfo
parent441a7c10921341ca72423cd6230f9dee82a8dc47 (diff)
downloadrust-b14f3e54906b9e0e8906affd406923bb8fc12b1e.tar.gz
rust-b14f3e54906b9e0e8906affd406923bb8fc12b1e.zip
Adapt code to latest rustc master changes
Diffstat (limited to 'src/librustc_codegen_llvm/debuginfo')
-rw-r--r--src/librustc_codegen_llvm/debuginfo/metadata.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/librustc_codegen_llvm/debuginfo/metadata.rs b/src/librustc_codegen_llvm/debuginfo/metadata.rs
index 8da138f10e9..81d10609e2f 100644
--- a/src/librustc_codegen_llvm/debuginfo/metadata.rs
+++ b/src/librustc_codegen_llvm/debuginfo/metadata.rs
@@ -2013,13 +2013,7 @@ pub fn create_vtable_metadata(
         llvm::LLVMRustDIBuilderCreateStaticVariable(DIB(cx),
                                                     NO_SCOPE_METADATA,
                                                     name.as_ptr(),
-                                                    // LLVM 3.9
-                                                    // doesn't accept
-                                                    // null here, so
-                                                    // pass the name
-                                                    // as the linkage
-                                                    // name.
-                                                    name.as_ptr(),
+                                                    ptr::null(),
                                                     unknown_file_metadata(cx),
                                                     UNKNOWN_LINE_NUMBER,
                                                     vtable_type,