aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Core/SVals.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2011-11-16 19:58:05 +0000
committerAnna Zaks <ganna@apple.com>2011-11-16 19:58:05 +0000
commit57e156a7ed2ce9083f77dde7a4b757ccc9cf8e50 (patch)
tree8fcb8da1da2788199c51ade240e7ae5527d77ff4 /lib/StaticAnalyzer/Core/SVals.cpp
parentfc06f988da35df75e623e0c1c4e4db4d36c0b43b (diff)
[analyzer] Cleanup: Null->0, comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144823 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/SVals.cpp')
-rw-r--r--lib/StaticAnalyzer/Core/SVals.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/StaticAnalyzer/Core/SVals.cpp b/lib/StaticAnalyzer/Core/SVals.cpp
index b5980b9693..309b6ea424 100644
--- a/lib/StaticAnalyzer/Core/SVals.cpp
+++ b/lib/StaticAnalyzer/Core/SVals.cpp
@@ -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.