aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-07-04 11:43:03 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-07-04 11:43:03 +0000
commit9a08fee80a34938b8c11c7166e009a89ced4c2b4 (patch)
treea5faf38cf07d6eb062d2d9b3338f4ba346582b4f
parent4994d2d50ceacdc8908f750c55589c0a20942a0a (diff)
CompoundLiteralRegion is boundable when it is not in the file scope.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74788 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Analysis/PathSensitive/MemRegion.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Analysis/PathSensitive/MemRegion.h b/include/clang/Analysis/PathSensitive/MemRegion.h
index 61522cbe05..5926229e51 100644
--- a/include/clang/Analysis/PathSensitive/MemRegion.h
+++ b/include/clang/Analysis/PathSensitive/MemRegion.h
@@ -392,6 +392,8 @@ public:
return C.getCanonicalType(CL->getType());
}
+ bool isBoundable() const { return !CL->isFileScope(); }
+
void Profile(llvm::FoldingSetNodeID& ID) const;
void print(llvm::raw_ostream& os) const;