]> granicus.if.org Git - llvm/commit
ASAN: Don't drop debug info attachements for global variables.
authorAdrian Prantl <aprantl@apple.com>
Tue, 20 Sep 2016 18:28:42 +0000 (18:28 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 20 Sep 2016 18:28:42 +0000 (18:28 +0000)
commit3051c6d5127106e62acf7e44dcad65ef23e2a5d5
tree2c77ea85bd59cf18cd74a5198035b1e67631f749
parent864e0ffb0eb47f848aca60d1f08fc2962fbb5009
ASAN: Don't drop debug info attachements for global variables.
This is a follow-up to r281284. Global Variables now can have
!dbg attachements, so ASAN should clone these when generating a
sanitized copy of a global variable.

<rdar://problem/24899262>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281994 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/AddressSanitizer.cpp
test/Instrumentation/AddressSanitizer/debug-info-global-var.ll [new file with mode: 0644]