gallivm: fix a missing argument to CreateAtomicCmpXchg

Submitted by Neha Bhende on Aug. 2, 2019, 10:18 a.m.

Details

Message ID DM5PR05MB2810ED9D6A618E31A9C51E9EC1D90@DM5PR05MB2810.namprd05.prod.outlook.com
State New
Headers show
Series "gallivm: fix a missing argument to CreateAtomicCmpXchg" ( rev: 3 ) in Mesa

Not browsing as part of any series.

Commit Message

Neha Bhende Aug. 2, 2019, 10:18 a.m.
LGTM

Reviewed-by: Neha Bhende <bhenden@vmware.com>

Regards,
Neha

Patch hide | download patch | download mbox

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
index 79d1029..8205d24 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
@@ -831,6 +831,7 @@  LLVMValueRef LLVMBuildAtomicCmpXchg(LLVMBuilderRef B, LLVMValueRef Ptr,
    /* LLVM 3.8 doesn't have a second ordering and uses old SynchronizationScope enum */
    return llvm::wrap(llvm::unwrap(B)->CreateAtomicCmpXchg(llvm::unwrap(Ptr), llvm::unwrap(Cmp),
                                                           llvm::unwrap(New), mapFromLLVMOrdering(SuccessOrdering),
+                                                          mapFromLLVMOrdering(FailureOrdering),
                                                           SingleThread ? llvm::SynchronizationScope::SingleThread : llvm::SynchronizationScope::CrossThread));
 }
 #endif