[IRBuilder] Handle constexpr-bitcast for IRBuilder::CreateThreadLocalAddress
In case that opaque pointers not enabled, there may be some constexpr bitcast uses for thread local variables and the design of llvm allow people to sink constant arbitrarily. This breaks the assumption of IRBuilder::CreateThreadLocalAddress. This patch tries to handle the case.
Loading
Please sign in to comment