AmrDeveloper wrote:

> We'll need to repeat this for the places that pull a type out of the AST. You 
> should be able to just call `getAtomicUnqualifiedType()` before calling 
> `castAs<>`, though.
> 
> Make sure you include compound assignment.

I updated the places where we pull the type for complex-scalar cast and in 
#172210 I will update the types for Complex to Complex cast, but i am thinking, 
is that means some type promotion was ignored before because in 
`getPromotionType` we promote only if the type is complex and in case of 
`Atomic(Complex(T))` this function will return empty type 🤔

https://github.com/llvm/llvm-project/pull/172163
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to