aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/MemRegion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Analysis/MemRegion.cpp')
-rw-r--r--lib/Analysis/MemRegion.cpp5
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();