[PATCH] Fix to support properly cleaning up failed address sinking against constants
lgg at apple.com
Fri Mar 28 19:01:37 PDT 2014
It turns out there is an edge case where the cleanup code for I introduced in r204833 can cause a crash if the address we attempted to sink and then backed out was coming from a constant. This patch changes the check used to determine if cleaning up the IR is necessary to use a dyn_cast and confirm it is in fact an instruction and not a constant.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1400 bytes
Desc: not available
More information about the llvm-commits