s-barannikov wrote:

> Updating the wrapper function's return type as below also fixes the error:

I mean, why do we have to watch for type mismatches and fix them instead of 
creating the correct type in the first place?
There is `getPointerType(RetQT)` just above, shouldn't it be something like 
`getPointerType(RetQT, <correct address space>)`?
Or RetQT should have had the correct address space, but for some reason it was 
lost?



https://github.com/llvm/llvm-project/pull/119246
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to