[clang] [CIR] Add VTable class name for array types (PR #164155)
Mihail Mihov via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 19 02:33:10 PDT 2025
MihailMihov wrote:
Currently there is no test for this, as I'm not sure how to test it. In the linked issue, `throw` was suggested, but I don't think that can work for arrays as they always go through the array-to-pointer conversion. `typeid` can't be used in the tests and I think it's not implemented in CIR.
The only thing that might work is try/catch. I think [this](https://godbolt.org/z/5f1KnK6oj) would be a correct test for `Type::ConstantArray`, but `try` is not yet upstreamed and I don't think that same idea can be applied for `Type::IncompleteArray` or `Type::VariableArray`.
https://github.com/llvm/llvm-project/pull/164155
More information about the cfe-commits
mailing list