================
@@ -563,8 +563,11 @@ bool Pointer::hasSameBase(const Pointer &A, const Pointer 
&B) {
   if (A.isTypeidPointer() && B.isTypeidPointer())
     return true;
 
-  if (A.isIntegralPointer() || B.isIntegralPointer())
+  if (A.isIntegralPointer() || B.isIntegralPointer()) {
+    if (A.isTypeidPointer() || B.isTypeidPointer())
+      return false;
----------------
efriedma-quic wrote:

I was going to try to explain this... but then I realized the getSource() check 
isn't actually doing anything, so I just deleted this whole block of code.

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

Reply via email to