================
@@ -304,6 +304,9 @@ static bool isQualificationConvertiblePointer(QualType 
From, QualType To,
            "From pointer or array has no pointee or element!");
     assert(ToPointeeOrElem && "To pointer or array has no pointee or 
element!");
 
+    if (!FromPointeeOrElem || !ToPointeeOrElem)
+      return false;
+
----------------
vbvictor wrote:

If we aren't enabling this check in CI, we better use just `assert` without any 
`if` statements.

https://github.com/llvm/llvm-project/pull/170004
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to