================
@@ -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;
----------------
steakhal wrote:
I wonder why didn't we use `Call.getArgExpr(0)->getType()` in the first place?
We jump a lot of hoops to get this.
https://github.com/llvm/llvm-project/pull/210167
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits