Improve the safety of my globalopt enhancement by ensuring that the bitcast
authorOwen Anderson <resistor@mac.com>
Sun, 16 Jan 2011 04:33:33 +0000 (04:33 +0000)
committerOwen Anderson <resistor@mac.com>
Sun, 16 Jan 2011 04:33:33 +0000 (04:33 +0000)
commit66f708f7e5f207d7a7ab259b70b5fd94795fb74c
tree613afbfede21288f10945502fa281c5ce80c2adf
parent156eb0a569a1ebac86ad8438645f690d8a3894c4
Improve the safety of my globalopt enhancement by ensuring that the bitcast
of the stored value to the new store type is always.  Also, add a testcase.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123563 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/GlobalOpt.cpp
test/Transforms/GlobalOpt/static-ctor-bitcast.ll [new file with mode: 0644]