This patch is activating the build of Asan on Windows 64-bits.
It's fixing compilation errors. The runtime is not yet working.
Missing features:
- OverrideFunction for x64
- an equiv function for inline asm (atomic_compare_exchange_strong)
- shadow memory offset needs to be adjusted
- RoundUpToInstrBoundary for x64
They will be implemented by subsequent patches.
I think this is likely to turn this bot red:
http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/
It builds 'check-all' with compiler-rt on win64, and the tests obviously don't pass yet. I think if you change the code at the end of compiler-rt/test/asan/CMakeLists.txt to set EXCLUDE_FROM_ALL to ON, you can avoid breaking it.