summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/asan_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/asan/asan_win.cc')
-rw-r--r--compiler-rt/lib/asan/asan_win.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/asan_win.cc b/compiler-rt/lib/asan/asan_win.cc
index 94f4d04a18a..baa8268b397 100644
--- a/compiler-rt/lib/asan/asan_win.cc
+++ b/compiler-rt/lib/asan/asan_win.cc
@@ -234,6 +234,10 @@ int AtomicInc(int *a) {
return InterlockedExchangeAdd((LONG*)a, 1) + 1;
}
+uint16_t AtomicExchange(uint16_t *a, uint16_t new_val) {
+ return InterlockedExchange16(a, new_val);
+}
+
const char* AsanGetEnv(const char* name) {
static char env_buffer[32767] = {};
OpenPOWER on IntegriCloud