================
@@ -265,16 +305,22 @@ class StdVariantChecker : public Checker<eval::Call, 
check::RegionChanges> {
     }
 
     QualType RetrievedCanonicalType = RetrievedType.getCanonicalType();
-    QualType StoredCanonicalType = StoredType->getCanonicalType();
-    if (RetrievedCanonicalType == StoredCanonicalType)
+    QualType StoredCanonicalType = StoredType.getCanonicalType();
+    if (RetrievedCanonicalType.isNull() || StoredType.isNull())
----------------
NagyDonat wrote:

At this point the case where `StoredType.isNull()` is already ruled out. Either 
delete that check or replace it with `StoredCanonicalType.isNull()` if you 
think that is needed.

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

Reply via email to