diff options
| author | bors <bors@rust-lang.org> | 2022-11-27 19:54:04 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-11-27 19:54:04 +0000 |
| commit | f8fbc6da3c467b27793c35c6e105053c9d092447 (patch) | |
| tree | 7dd601ec2ec68fea1cef829a5296be7c3b29a437 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 66354f00430eebb88d33de02326d7ca9196bd61a (diff) | |
| parent | 598c3da62735ec5bc8459ce3f0d718e44ac3e775 (diff) | |
| download | rust-f8fbc6da3c467b27793c35c6e105053c9d092447.tar.gz rust-f8fbc6da3c467b27793c35c6e105053c9d092447.zip | |
Auto merge of #2702 - RalfJung:rustup, r=RalfJung
Rustup No changes happened on the rustc side, but I want to do a push next and would rather make josh's life easier by integrating some recent history first.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp index 6f8bb676104..216c35d6da0 100644 --- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp @@ -1036,8 +1036,9 @@ extern "C" LLVMValueRef LLVMRustDIBuilderInsertDeclareAtEnd( extern "C" LLVMMetadataRef LLVMRustDIBuilderCreateEnumerator( LLVMRustDIBuilderRef Builder, const char *Name, size_t NameLen, - int64_t Value, bool IsUnsigned) { - return wrap(Builder->createEnumerator(StringRef(Name, NameLen), Value, IsUnsigned)); + const uint64_t Value[2], unsigned SizeInBits, bool IsUnsigned) { + return wrap(Builder->createEnumerator(StringRef(Name, NameLen), + APSInt(APInt(SizeInBits, makeArrayRef(Value, 2)), IsUnsigned))); } extern "C" LLVMMetadataRef LLVMRustDIBuilderCreateEnumerationType( |
