diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-03-04 22:55:18 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-03-04 22:55:18 +0000 |
commit | 1b9b883a95215e38e153d253a46a2a2fcac25896 (patch) | |
tree | fc5e17e6a8aa0da107db586c57707a15eb9d88a7 /lib/Analysis/MemRegion.cpp | |
parent | a880b66d6e0e446501fcbc27b87a1ec0e4ecde4c (diff) |
MemRegion:
- Have 'TypedRegion::getRValueType()' return a null QualType for 'id<...>'
instead of aborting.
- Change 'TypedRegion::isBoundable()' to return true for all objects with a
non-null RValueType (this may not be the final behavior).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66093 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/MemRegion.cpp')
-rw-r--r-- | lib/Analysis/MemRegion.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Analysis/MemRegion.cpp b/lib/Analysis/MemRegion.cpp index 8dd31b54b0..c304b659b6 100644 --- a/lib/Analysis/MemRegion.cpp +++ b/lib/Analysis/MemRegion.cpp @@ -123,8 +123,9 @@ QualType SymbolicRegion::getRValueType(ASTContext& C) const { if (const BlockPointerType* PTy = T->getAsBlockPointerType()) return PTy->getPointeeType(); - assert(!T->getAsObjCQualifiedIdType() && - "There is no rvalue type for id<...>"); + // There is no rvalue type of id<...>. + if (T->getAsObjCQualifiedIdType()) + return QualType(); assert(Loc::IsLocType(T) && "Non-location type."); return QualType(); |