Do not create a TypedViewRegion when the base struct region is a symbolic
region. In the future we may set the cast-to type as the same time. But for now, we simply leave it as it is. llvm-svn: 71357
This commit is contained in:
parent
4bc5a4c3bd
commit
b18d7cab0c
|
|
@ -371,10 +371,6 @@ SVal RegionStoreManager::getLValueFieldOrIvar(const GRState* St, SVal Base,
|
|||
switch (BaseL.getSubKind()) {
|
||||
case loc::MemRegionKind:
|
||||
BaseR = cast<loc::MemRegionVal>(BaseL).getRegion();
|
||||
if (const SymbolicRegion* SR = dyn_cast<SymbolicRegion>(BaseR)) {
|
||||
SymbolRef Sym = SR->getSymbol();
|
||||
BaseR = MRMgr.getTypedViewRegion(Sym->getType(getContext()), SR);
|
||||
}
|
||||
break;
|
||||
|
||||
case loc::GotoLabelKind:
|
||||
|
|
|
|||
Loading…
Reference in New Issue