================
@@ -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;
+
----------------
zeyi2 wrote:
I think the reason I previously added this is because I didn't test an assert
build.
Today I found that in assert build the warning won't trigger, so this is a
unnecessary modification.
https://github.com/llvm/llvm-project/pull/170004
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits