Skip to content
Commit a069c6ce authored by Nadav Rotem's avatar Nadav Rotem
Browse files

InstCombine optimizes gep(bitcast(x)) even when the bitcasts casts away address

space info. We crash with an assert in this case. This change checks that the
address space of the bitcasted pointer is the same as the gep ptr.

llvm-svn: 128884
parent 8d89b8e6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment