[cfe-commits] r144823 - /cfe/trunk/lib/StaticAnalyzer/Core/SVals.cpp
Anna Zaks
ganna at apple.com
Wed Nov 16 11:58:05 PST 2011
Author: zaks
Date: Wed Nov 16 13:58:05 2011
New Revision: 144823
URL: http://llvm.org/viewvc/llvm-project?rev=144823&view=rev
Log:
[analyzer] Cleanup: Null->0, comments.
Modified:
cfe/trunk/lib/StaticAnalyzer/Core/SVals.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/SVals.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/SVals.cpp?rev=144823&r1=144822&r2=144823&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/SVals.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/SVals.cpp Wed Nov 16 13:58:05 2011
@@ -54,11 +54,11 @@
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 @@
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.
More information about the cfe-commits
mailing list