[PATCH] D59228: Fix typos in compiler-rt/lib/builtins/atomic.c
Xing Xue via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 11 12:50:54 PDT 2019
xingxue created this revision.
xingxue added reviewers: jasonliu, hubert.reinterpretcast.
xingxue added a project: LLVM.
Herald added subscribers: Sanitizers, jdoerfert, jfb, dberris.
Herald added a project: Sanitizers.
This patch fixes typos in file compiler-rt/lib/builtins/atomic.c.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D59228
Files:
compiler-rt/lib/builtins/atomic.c
Index: compiler-rt/lib/builtins/atomic.c
===================================================================
--- compiler-rt/lib/builtins/atomic.c
+++ compiler-rt/lib/builtins/atomic.c
@@ -139,19 +139,23 @@
if (IS_LOCK_FREE_2) {\
LOCK_FREE_ACTION(uint16_t);\
}\
+ break; \
case 4:\
if (IS_LOCK_FREE_4) {\
LOCK_FREE_ACTION(uint32_t);\
}\
+ break; \
case 8:\
if (IS_LOCK_FREE_8) {\
LOCK_FREE_ACTION(uint64_t);\
}\
+ break; \
case 16:\
if (IS_LOCK_FREE_16) {\
/* FIXME: __uint128_t isn't available on 32 bit platforms.
LOCK_FREE_ACTION(__uint128_t);*/\
}\
+ break; \
}\
} while (0)
@@ -174,7 +178,7 @@
/// pointer only.
void __atomic_store_c(int size, void *dest, void *src, int model) {
#define LOCK_FREE_ACTION(type) \
- __c11_atomic_store((_Atomic(type)*)dest, *(type*)dest, model);\
+ __c11_atomic_store((_Atomic(type)*)dest, *(type*)src, model);\
return;
LOCK_FREE_CASES();
#undef LOCK_FREE_ACTION
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59228.190138.patch
Type: text/x-patch
Size: 1062 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190311/65ff7de1/attachment.bin>
More information about the llvm-commits
mailing list