LowerBitSets: Avoid reusing byte set addresses.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 19 Mar 2015 22:02:10 +0000 (22:02 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 19 Mar 2015 22:02:10 +0000 (22:02 +0000)
commit58e8e3505d3673ab629f8c4f7857307368fbbd4f
tree42ec6501b762d63979411b20b130df492e04f35d
parent416d8ecf80eafaefecc8e934930a2285a66a93d8
LowerBitSets: Avoid reusing byte set addresses.

Each use of the byte array uses a different alias. This makes the
backend less likely to reuse previously computed byte array addresses,
improving the security of the CFI mechanism based on this pass.

Differential Revision: http://reviews.llvm.org/D8455

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232770 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/LowerBitSets.cpp
test/Transforms/LowerBitSets/simple.ll