aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-08-17 23:51:30 +0000
committerTed Kremenek <kremenek@apple.com>2010-08-17 23:51:30 +0000
commitcced08e13c9fba9381e39a27c70abe6978adee37 (patch)
treecf51d7cb872a241908eafcc5c4c132e5935a845b
parent46877cd012c6637a9c98d5f27afbc3cbf73e57d0 (diff)
TypedRegion::isBoundable() should return true by default. Since there is no TypedViewRegion anyore, it is not possible that the subclass (which doesn't override isBoundable) could return a null value type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111329 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Checker/PathSensitive/MemRegion.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/clang/Checker/PathSensitive/MemRegion.h b/include/clang/Checker/PathSensitive/MemRegion.h
index 441c637d07..96f906af28 100644
--- a/include/clang/Checker/PathSensitive/MemRegion.h
+++ b/include/clang/Checker/PathSensitive/MemRegion.h
@@ -365,9 +365,7 @@ public:
return getLocationType().getDesugaredType();
}
- bool isBoundable() const {
- return !getValueType().isNull();
- }
+ bool isBoundable() const { return true; }
static bool classof(const MemRegion* R) {
unsigned k = R->getKind();