[PATCH] D87917: [Sema] Handle objc_super special lookup when checking builtin compatibility

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 18 11:05:41 PDT 2020


rjmccall added inline comments.


================
Comment at: clang/lib/Sema/SemaDecl.cpp:9674
             ASTContext::GetBuiltinTypeError Error;
+            LookupPredefedObjCSuperType(*this, S, NewFD->getIdentifier());
             QualType BuiltinType = Context.GetBuiltinType(BuiltinID, Error);
----------------
Can we avoid doing this except for the small number of builtins that use `struct objc_super`?  We already have the BuiltinID.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87917/new/

https://reviews.llvm.org/D87917



More information about the cfe-commits mailing list