From dc0a25d9bff956cdbe54ea0bfc8fbbe3ceb4eb92 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Sun, 16 Nov 2008 04:07:26 +0000 Subject: Enhances SCA to process untyped region to typed region conversion. - RegionView and RegionViewMap is introduced to assist back-mapping from super region to subregions. - GDM is used to carry RegionView information. - AnonTypedRegion is added to represent a typed region introduced by pointer casting. Later AnonTypedRegion can be used in other similar cases, e.g., malloc()'ed region. - The specific conversion is delegated to store manager. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59382 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/BasicStore.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/Analysis/BasicStore.cpp') diff --git a/lib/Analysis/BasicStore.cpp b/lib/Analysis/BasicStore.cpp index 4197c08a9c..8b5ef6ee86 100644 --- a/lib/Analysis/BasicStore.cpp +++ b/lib/Analysis/BasicStore.cpp @@ -65,6 +65,12 @@ public: /// ArrayToPointer - Used by GRExprEngine::VistCast to handle implicit /// conversions between arrays and pointers. SVal ArrayToPointer(SVal Array) { return Array; } + + const GRState* CastRegion(const GRState* St, SVal VoidPtr, QualType CastToTy, + Stmt* CastE) { + return St; + } + /// getSelfRegion - Returns the region for the 'self' (Objective-C) or /// 'this' object (C++). When used when analyzing a normal function this -- cgit v1.2.3