[ASAN] NFC: Copy address space when creating globals with redzones
authorReshabh Sharma <Reshabhkumar.Sharma@amd.com>
Thu, 29 Apr 2021 04:49:12 +0000 (10:19 +0530)
committerReshabh Sharma <Reshabhkumar.Sharma@amd.com>
Thu, 29 Apr 2021 04:51:43 +0000 (10:21 +0530)
commitfc1df36e6e402cadb46befd32c4d195a4096477b
tree7930c16288813cf08ec9fe7fa9aac2cc6ebfa003
parent1bbbcff99de8e53b89146386bb2587ed4fc8e9cf
[ASAN] NFC: Copy address space when creating globals with redzones

This patch makes sure that globals in supported address spaces
will be replaced by globals with red zones in the same address
space by copying the address space.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D101362
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp