]> granicus.if.org Git - llvm/commit
[Recycler] Add asan/msan annotations.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 20 Apr 2017 18:29:37 +0000 (18:29 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 20 Apr 2017 18:29:37 +0000 (18:29 +0000)
commit4b3567dbfc069c53e5ebadf10f626e381e1e577b
treebc22341238a5e6ccd0ab4362fe012b32098924ca
parent5fc394e87192c112430c1323ef8b1afe08560dc9
[Recycler] Add asan/msan annotations.

This enables use after free and uninit memory checking for memory
returned by a recycler. SelectionDAG currently relies on the opcode of a
free'd node being ISD::DELETED_NODE, so poke a hole in the asan poison
for SDNode opcodes. This means that we won't find some issues, but only
in SDag.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300868 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/ArrayRecycler.h
include/llvm/Support/Recycler.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp