================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to