summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/Sema/SemaExpr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/Sema/SemaExpr.cpp b/clang/Sema/SemaExpr.cpp
index 281e524350f..795f6da6ac1 100644
--- a/clang/Sema/SemaExpr.cpp
+++ b/clang/Sema/SemaExpr.cpp
@@ -1947,6 +1947,8 @@ Sema::ExprResult Sema::ParseObjCProtocolExpression(IdentifierInfo *ProtocolId,
}
QualType t = GetObjcProtoType(AtLoc);
+ if (t.isNull())
+ return true;
return new ObjCProtocolExpr(t, PDecl, AtLoc, RParenLoc);
}
OpenPOWER on IntegriCloud