forked from OSchip/llvm-project
Remove unused variable, fix indentation.
llvm-svn: 153220
This commit is contained in:
parent
a6983a9bce
commit
c25c5e0ba2
|
@ -815,14 +815,12 @@ MallocChecker::getAllocationSite(const ExplodedNode *N, SymbolRef Sym,
|
||||||
|
|
||||||
// Find the most recent expression bound to the symbol in the current
|
// Find the most recent expression bound to the symbol in the current
|
||||||
// context.
|
// context.
|
||||||
ProgramPoint L = N->getLocation();
|
|
||||||
if (!ReferenceRegion) {
|
if (!ReferenceRegion) {
|
||||||
const MemRegion *MR = C.getLocationRegionIfPostStore(N);
|
if (const MemRegion *MR = C.getLocationRegionIfPostStore(N)) {
|
||||||
if (MR) {
|
SVal Val = State->getSVal(MR);
|
||||||
SVal Val = State->getSVal(MR);
|
if (Val.getAsLocSymbol() == Sym)
|
||||||
if (Val.getAsLocSymbol() == Sym)
|
ReferenceRegion = MR;
|
||||||
ReferenceRegion = MR;
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Allocation node, is the last node in the current context in which the
|
// Allocation node, is the last node in the current context in which the
|
||||||
|
|
Loading…
Reference in New Issue