forked from OSchip/llvm-project
Only loc::MemRegionVal can be modified. This avoids crashing in RegionStore when a function pointer is used as an argument.
llvm-svn: 58233
This commit is contained in:
parent
8475d56794
commit
d7c44059d4
|
@ -369,7 +369,7 @@ void GRSimpleVals::EvalCall(ExplodedNodeSet<GRState>& Dst,
|
|||
|
||||
SVal V = StateMgr.GetSVal(St, *I);
|
||||
|
||||
if (isa<Loc>(V))
|
||||
if (isa<loc::MemRegionVal>(V))
|
||||
St = StateMgr.SetSVal(St, cast<Loc>(V), UnknownVal());
|
||||
else if (isa<nonloc::LocAsInteger>(V))
|
||||
St = StateMgr.SetSVal(St, cast<nonloc::LocAsInteger>(V).getLoc(),
|
||||
|
|
Loading…
Reference in New Issue