[cfe-commits] r74788 - /cfe/trunk/include/clang/Analysis/PathSensitive/MemRegion.h

Zhongxing Xu xuzhongxing at gmail.com
Sat Jul 4 04:43:14 PDT 2009


Author: zhongxingxu
Date: Sat Jul  4 06:43:03 2009
New Revision: 74788

URL: http://llvm.org/viewvc/llvm-project?rev=74788&view=rev
Log:
CompoundLiteralRegion is boundable when it is not in the file scope.

Modified:
    cfe/trunk/include/clang/Analysis/PathSensitive/MemRegion.h

Modified: cfe/trunk/include/clang/Analysis/PathSensitive/MemRegion.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/PathSensitive/MemRegion.h?rev=74788&r1=74787&r2=74788&view=diff

==============================================================================
--- cfe/trunk/include/clang/Analysis/PathSensitive/MemRegion.h (original)
+++ cfe/trunk/include/clang/Analysis/PathSensitive/MemRegion.h Sat Jul  4 06:43:03 2009
@@ -392,6 +392,8 @@
     return C.getCanonicalType(CL->getType());
   }
 
+  bool isBoundable() const { return !CL->isFileScope(); }
+
   void Profile(llvm::FoldingSetNodeID& ID) const;
   
   void print(llvm::raw_ostream& os) const;





More information about the cfe-commits mailing list