[clang] [Clang][Bytecode] Fix void*-to-ptr casts originating from new/new[] (PR #174132)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 1 23:41:15 PST 2026
================
@@ -354,7 +354,8 @@ class Pointer {
if (const auto *CT = getFieldDesc()->getType()->getAs<VectorType>())
return CT->getElementType();
}
- return getFieldDesc()->getType();
+
+ return getFieldDesc()->getDataElemType();
----------------
tbaederr wrote:
The entire "what QualType does this Pointer point to" story is kinda a mess right now. So this is fine.
https://github.com/llvm/llvm-project/pull/174132
More information about the cfe-commits
mailing list