diff options
| author | Augie Fackler <augie@google.com> | 2021-03-19 16:46:40 -0400 |
|---|---|---|
| committer | Augie Fackler <augie@google.com> | 2021-03-19 16:46:40 -0400 |
| commit | babe894bab47e43c2a884fe367095905e4e88993 (patch) | |
| tree | f9fd4d3ba946ba816cf0076aa580aabc292a3470 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | dcdb9ad3d27aca6185af64f2e0318ed47860c6c0 (diff) | |
| download | rust-babe894bab47e43c2a884fe367095905e4e88993.tar.gz rust-babe894bab47e43c2a884fe367095905e4e88993.zip | |
fix: I meant LLVM version 13, not 12
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp index 9aa6d202cb5..d33bce51f02 100644 --- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp @@ -382,7 +382,7 @@ LLVMRustBuildAtomicCmpXchg(LLVMBuilderRef B, LLVMValueRef Target, LLVMValueRef Old, LLVMValueRef Source, LLVMAtomicOrdering Order, LLVMAtomicOrdering FailureOrder, LLVMBool Weak) { -#if LLVM_VERSION_GE(12,0) +#if LLVM_VERSION_GE(13,0) AtomicCmpXchgInst *ACXI = unwrap(B)->CreateAtomicCmpXchg( unwrap(Target), unwrap(Old), unwrap(Source), llvm::MaybeAlign(), fromRust(Order), fromRust(FailureOrder)); |
