forked from OSchip/llvm-project
parent
f73b282bf0
commit
a3d6e62003
|
@ -590,6 +590,8 @@ SVal RegionStoreManager::getLValueString(const StringLiteral* S) {
|
||||||
/// VarRegion, and the lvalue of the variable is the lvalue of that region.
|
/// VarRegion, and the lvalue of the variable is the lvalue of that region.
|
||||||
SVal RegionStoreManager::getLValueVar(const VarDecl *VD,
|
SVal RegionStoreManager::getLValueVar(const VarDecl *VD,
|
||||||
const LocationContext *LC) {
|
const LocationContext *LC) {
|
||||||
|
// FIXME: The LocationContext should be adjusted if 'VD' is not from
|
||||||
|
// the current stack frame, but is a global, etc.
|
||||||
return loc::MemRegionVal(MRMgr.getVarRegion(VD, LC));
|
return loc::MemRegionVal(MRMgr.getVarRegion(VD, LC));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue