================
@@ -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())
----------------
edisongz wrote:

> but there's no reason to leave the hazard

Thanks for the feedback. Moved the guard into `CodeCompleteObjCInstanceMessage` 
as suggested.

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