BgZun wrote: Hi @ojhunt I looked at your question and found a different answer then what I used initially. This way takes care of the case if multiple explicit casts are used. Pinging for your input and review https://github.com/llvm/llvm-project/pull/170637