diff options
| author | Ralf Jung <post@ralfj.de> | 2025-09-23 07:57:20 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-23 07:57:20 +0000 |
| commit | 85be36c1d38028b7be1d63f895f269c61d8953d4 (patch) | |
| tree | 406fd3b8a96508cae5b1ac33ccc57ca641f4cc85 /compiler/rustc_llvm/llvm-wrapper | |
| parent | 0d906b746a04d2aa546335f74bf0f613e9842dfb (diff) | |
| parent | 0cd72a2f8d90672d0c7ce38a4e0d6ac3975aafbb (diff) | |
| download | rust-85be36c1d38028b7be1d63f895f269c61d8953d4.tar.gz rust-85be36c1d38028b7be1d63f895f269c61d8953d4.zip | |
Merge pull request #4601 from RalfJung/rustup
Rustup
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp index 64151962321..414274f24fb 100644 --- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp @@ -553,6 +553,7 @@ enum class LLVMRustMemoryEffects { None, ReadOnly, InaccessibleMemOnly, + ReadOnlyNotPure, }; extern "C" LLVMAttributeRef @@ -568,6 +569,10 @@ LLVMRustCreateMemoryEffectsAttr(LLVMContextRef C, case LLVMRustMemoryEffects::InaccessibleMemOnly: return wrap(Attribute::getWithMemoryEffects( *unwrap(C), MemoryEffects::inaccessibleMemOnly())); + case LLVMRustMemoryEffects::ReadOnlyNotPure: + return wrap(Attribute::getWithMemoryEffects( + *unwrap(C), + MemoryEffects::readOnly() | MemoryEffects::inaccessibleMemOnly())); default: report_fatal_error("bad MemoryEffects."); } |
