diff options
| author | Arthur Eubanks <aeubanks@google.com> | 2023-11-15 11:29:35 -0800 |
|---|---|---|
| committer | Arthur Eubanks <aeubanks@google.com> | 2023-11-15 11:29:35 -0800 |
| commit | 984898da1727158f096c3a07ebd9a5ac487d733f (patch) | |
| tree | 74a2edc9cedb3bd32f6098587f147c1c5f00ae5a /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 0b244796388a929affbea546f1c886dc2e482898 (diff) | |
| download | rust-984898da1727158f096c3a07ebd9a5ac487d733f.tar.gz rust-984898da1727158f096c3a07ebd9a5ac487d733f.zip | |
[llvm-wrapper] Pass newly added param to DIBuilder::createStaticMemberType()
This was added in https://github.com/llvm/llvm-project/pull/72234. DW_TAG_member was the implicit default before.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp index 4390486b0de..8b2c73aeffa 100644 --- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp @@ -983,6 +983,9 @@ extern "C" LLVMMetadataRef LLVMRustDIBuilderCreateStaticMemberType( unwrapDI<DIType>(Ty), fromRust(Flags), unwrap<llvm::ConstantInt>(val), +#if LLVM_VERSION_GE(17, 0) + llvm::dwarf::DW_TAG_member, +#endif AlignInBits )); } |
