================
@@ -226,8 +226,11 @@ class StdVariantChecker : public Checker<eval::Call,
check::RegionChanges> {
if (ArgSVal.isUnknown())
return false;
- const auto &ArgType =
- ArgSVal.getType(C.getASTContext())->getPointeeType().getTypePtr();
+ QualType SValType = ArgSVal.getType(C.getASTContext());
+ if (SValType.isNull() || !SValType->isPointerType())
+ return false;
+
+ const auto &ArgType = SValType->getPointeeType().getTypePtr();
----------------
jpjepko wrote:
With the latest change `getPointeeType()` is no longer called, and we get the
variant type directly now, so I believe this restriction no longer applies.
https://github.com/llvm/llvm-project/pull/210167
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits