struct s {};
void f() {
int a[10];
int (*p)[10];
p = &a;
(*p)[3] =1;
struct s d;
struct s *q;
q = &d;
}
We return the corresponding MemRegionVal for them.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57664
91177308-0d34-0410-b5e6-
96231b3b80d8
return new BasicStoreManager(StMgr);
}
RVal BasicStoreManager::getLValueVar(const GRState* St, const VarDecl* VD) {
- QualType T = VD->getType();
- assert(!T->isArrayType() && "Array and struct variable have no lvalue.");
return lval::MemRegionVal(MRMgr.getVarRegion(VD));
}