[PATCH] D87983: [Sema] Split special builtin type lookups into a separate function
John McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 20 14:50:34 PDT 2020
rjmccall accepted this revision.
rjmccall added a comment.
This revision is now accepted and ready to land.
Thanks. Minor improvement and then LGTM.
================
Comment at: clang/lib/Sema/SemaLookup.cpp:924
+void Sema::LookupNecessaryTypesForBuiltin(Scope *S, unsigned ID) {
+ if (getLangOpts().ObjC && ID == Builtin::BIobjc_msgSendSuper)
+ LookupPredefedObjCSuperType(*this, S);
----------------
I'm pretty sure this builtin only exists in ObjC mode, so there's no need to separately check the language mode. (Even if you did want to check it, it would be better to check the builtin mode first, as that's a very trivial check.)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87983/new/
https://reviews.llvm.org/D87983
More information about the cfe-commits
mailing list