diff options
author | Kostya Serebryany <kcc@google.com> | 2012-06-06 14:46:38 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2012-06-06 14:46:38 +0000 |
commit | 53b74ac25697fb03569ffe98e309be377899ba92 (patch) | |
tree | e7991ef67c4badaea25e6c900f1fc7e6ae256780 /compiler-rt/lib/asan/asan_win.cc | |
parent | 64166ca86bc2ed3d363233b14d68cb2c1f6e4322 (diff) | |
download | bcm5719-llvm-53b74ac25697fb03569ffe98e309be377899ba92.tar.gz bcm5719-llvm-53b74ac25697fb03569ffe98e309be377899ba92.zip |
[asan] start compacting the allocator header, the goal is to make it 16 bytes w/o losing any information
llvm-svn: 158072
Diffstat (limited to 'compiler-rt/lib/asan/asan_win.cc')
-rw-r--r-- | compiler-rt/lib/asan/asan_win.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/asan_win.cc b/compiler-rt/lib/asan/asan_win.cc index 609f3d4322f..8e49edafd8c 100644 --- a/compiler-rt/lib/asan/asan_win.cc +++ b/compiler-rt/lib/asan/asan_win.cc @@ -219,6 +219,13 @@ u16 AtomicExchange(u16 *a, u16 new_val) { return new_val; } +u16 AtomicExchange(u16 *a, u16 new_val) { + // FIXME: can we do this with a proper xchg intrinsic? + u8 t = *a; + *a = new_val; + return t; +} + const char* AsanGetEnv(const char* name) { static char env_buffer[32767] = {}; |