AddressSanitizer: don't track swifterror memory addresses
authorArnold Schwaighofer <aschwaighofer@apple.com>
Wed, 15 Feb 2017 20:43:43 +0000 (20:43 +0000)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Wed, 15 Feb 2017 20:43:43 +0000 (20:43 +0000)
commitba3ba0d6a38df383777a0b42327bb1fa120e9f4f
tree37e0cf376384317ec7c149373bf80b14ace4e4e5
parentb7583bb8b23101afb45a67fe9b6100e8dae0f4ec
AddressSanitizer: don't track swifterror memory addresses

They are register promoted by ISel and so it makes no sense to treat them as
memory.

Inserting calls to the thread sanitizer would also generate invalid IR.

You would hit:

"swifterror value can only be loaded and stored from, or as a swifterror
argument!"

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295230 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/AddressSanitizer.cpp
test/Instrumentation/AddressSanitizer/basic.ll