[asan] Set debug location in ASan function prologue.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Wed, 14 May 2014 10:30:15 +0000 (10:30 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Wed, 14 May 2014 10:30:15 +0000 (10:30 +0000)
commiteb949e0d19e25e622263218db9d917b3e14a3ea2
tree1a1b5c98f426736f8dabe645509215b1f2db711a
parentdf75220bc76bf8f6b7b292237b15778b5d746703
[asan] Set debug location in ASan function prologue.

Most importantly, it gives debug location info to the coverage callback.

This change also removes 2 cases of unnecessary setDebugLoc when IRBuilder
is created with the same debug location.

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