]> granicus.if.org Git - clang/commitdiff
CompoundLiteralRegion is boundable when it is not in the file scope.
authorZhongxing Xu <xuzhongxing@gmail.com>
Sat, 4 Jul 2009 11:43:03 +0000 (11:43 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Sat, 4 Jul 2009 11:43:03 +0000 (11:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74788 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/PathSensitive/MemRegion.h

index 61522cbe059e8d4307a4c98994f31b24e2bf3e53..5926229e517c3db1961a63fe567c7cd9ebb70fba 100644 (file)
@@ -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;