[libcxx-commits] [clang] [libcxx] [clang] [libc++] fix _Atomic c11 compare exchange does not update expected results (PR #78707)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jul 4 11:06:47 PDT 2025
================
@@ -411,7 +412,33 @@ static void emitAtomicCmpXchg(CodeGenFunction &CGF, AtomicExpr *E, bool IsWeak,
CGF.Builder.SetInsertPoint(StoreExpectedBB);
// Update the memory at Expected with Old's value.
- CGF.Builder.CreateStore(Old, Val1);
+llvm::Type *ExpectedType = ExpectedResult.getElementType();
----------------
ldionne wrote:
Nitpick: this looks mis-formatted.
https://github.com/llvm/llvm-project/pull/78707
More information about the libcxx-commits
mailing list