HomePhabricator

[AddressSanitizer] Only instrument globals of default address space

Authored by Ka-Ka on Oct 29 2019, 11:45 PM.

Description

[AddressSanitizer] Only instrument globals of default address space

The address sanitizer ignore memory accesses from different address
spaces, however when instrumenting globals the check for different
address spaces is missing. This result in assertion failure. The fault
was found in an out of tree target.

The patch skip all globals of non default address space.

Reviewed By: leonardchan, vitalybuka

Differential Revision: https://reviews.llvm.org/D68790