[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)
commit997fd5eeb4f3c568590e8af6c82ab06b944bc3e5
tree761ef78904f202e3504d68ab46439dab98f6c024
parent58dadd59d94468250109b85737c41650f82409f3
[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.

llvm-svn: 300868
llvm/include/llvm/Support/ArrayRecycler.h
llvm/include/llvm/Support/Recycler.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp