PR4286: Make RewriteLoadUserOfWholeAlloca and
authorEli Friedman <eli.friedman@gmail.com>
Mon, 1 Jun 2009 09:14:32 +0000 (09:14 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Mon, 1 Jun 2009 09:14:32 +0000 (09:14 +0000)
commit41b33f437f70dcf63e35d08e5f4202258ef05c15
treed51fd14fc3b548f96c606472fa45d51022389ab0
parent3728a0253492cafc02893fc89890ed3452754970
PR4286: Make RewriteLoadUserOfWholeAlloca and
RewriteStoreUserOfWholeAlloca deal with tail padding because
isSafeUseOfBitCastedAllocation expects them to.  Otherwise, we crash
trying to erase the bitcast.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72688 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ScalarReplAggregates.cpp
test/Transforms/ScalarRepl/2009-06-01-BitcastIntPadding.ll [new file with mode: 0644]