[analyzer] Cleanup: Null->0, comments.

llvm-svn: 144823
This commit is contained in:
Anna Zaks 2011-11-16 19:58:05 +00:00
parent d254dece12
commit 6b1a955130
1 changed files with 4 additions and 4 deletions

View File

@ -54,11 +54,11 @@ const FunctionDecl *SVal::getAsFunctionDecl() const {
return CTR->getDecl();
}
return NULL;
return 0;
}
/// getAsLocSymbol - If this SVal is a location (subclasses Loc) and
/// wraps a symbol, return that SymbolRef. Otherwise return 0.
// If this SVal is a location (subclasses Loc) and wraps a symbol, return
// that SymbolRef. Otherwise return 0.
// FIXME: should we consider SymbolRef wrapped in CodeTextRegion?
SymbolRef SVal::getAsLocSymbol() const {
if (const nonloc::LocAsInteger *X = dyn_cast<nonloc::LocAsInteger>(this))
@ -69,7 +69,7 @@ SymbolRef SVal::getAsLocSymbol() const {
if (const SymbolicRegion *SymR = dyn_cast<SymbolicRegion>(R))
return SymR->getSymbol();
}
return NULL;
return 0;
}
/// Get the symbol in the SVal or its base region.