================
@@ -354,7 +354,8 @@ class Pointer {
if (const auto *CT = getFieldDesc()->getType()->getAs<VectorType>())
return CT->getElementType();
}
- return getFieldDesc()->getType();
+
+ return getFieldDesc()->getDataElemType();
----------------
keinflue wrote:
I replaced `->getType()` directly here in `Pointer::getType` instead of only
the relevant use site in `PtrPtrCast`, but because `Pointer::getType` has many
other users, I am not sure whether this is ok. Tests seem to pass though.
https://github.com/llvm/llvm-project/pull/174132
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits