Remove unused variable, fix indentation.

llvm-svn: 153220
This commit is contained in:
Benjamin Kramer 2012-03-21 21:03:48 +00:00
parent a6983a9bce
commit c25c5e0ba2
1 changed files with 5 additions and 7 deletions

View File

@ -815,10 +815,8 @@ MallocChecker::getAllocationSite(const ExplodedNode *N, SymbolRef Sym,
// Find the most recent expression bound to the symbol in the current
// context.
ProgramPoint L = N->getLocation();
if (!ReferenceRegion) {
const MemRegion *MR = C.getLocationRegionIfPostStore(N);
if (MR) {
if (const MemRegion *MR = C.getLocationRegionIfPostStore(N)) {
SVal Val = State->getSVal(MR);
if (Val.getAsLocSymbol() == Sym)
ReferenceRegion = MR;