================
@@ -5152,7 +5152,7 @@ void 
SemaCodeCompletion::CodeCompletePostfixExpression(Scope *S, ExprResult E,
                                                        QualType PreferredType) 
{
   if (E.isInvalid())
     CodeCompleteExpression(S, PreferredType);
-  else if (getLangOpts().ObjC)
+  else if (getLangOpts().ObjC && !E.get()->getType().isNull())
----------------
ojhunt wrote:

Move the validity check into CodeCompleteObjCInstanceMessage - no other sites 
seem to have a pattern that could encounter this, but there's no reason to 
leave the hazard

https://github.com/llvm/llvm-project/pull/180343
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to