Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Unified Diff: runtime/vm/atomic_macos.h

Issue 1283963003: Fix build by casting constants and using more compatible intrinsic name. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix remaining test. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/atomic_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/atomic_macos.h
diff --git a/runtime/vm/atomic_macos.h b/runtime/vm/atomic_macos.h
index d9b89bc3924a8bed5fb7fed97f0995bdad4bcec1..46d0bec4b612633260f3b69e18c52096ae0a23be 100644
--- a/runtime/vm/atomic_macos.h
+++ b/runtime/vm/atomic_macos.h
@@ -37,7 +37,7 @@ inline uword AtomicOperations::CompareAndSwapWord(uword* ptr,
inline uword AtomicOperations::LoadRelaxed(uword* ptr) {
#if defined(__ATOMIC_RELAXED)
- return __atomic_load_n(ptr, __ATOMIC_RELAXED);
+ return __c11_atomic_load(ptr, __ATOMIC_RELAXED);
#else
// TODO(koda): Consider using C++11 <atomic> to avoid the barrier on more
// compilers/platforms.
« no previous file with comments | « no previous file | runtime/vm/atomic_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698