Skip to content

Commit a4f2caf

Browse files
author
git apple-llvm automerger
committed
Merge commit 'fdab756331f3' from llvm.org/release/11.x into apple/stable/20200714
2 parents 1c923dd + fdab756 commit a4f2caf

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

clang/lib/Sema/SemaDecl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9648,6 +9648,7 @@ Sema::ActOnFunctionDeclarator(Scope *S, Declarator &D, DeclContext *DC,
96489648
NewFD->addAttr(BuiltinAttr::CreateImplicit(Context, BuiltinID));
96499649
} else {
96509650
ASTContext::GetBuiltinTypeError Error;
9651+
LookupPredefedObjCSuperType(*this, S, NewFD->getIdentifier());
96519652
QualType BuiltinType = Context.GetBuiltinType(BuiltinID, Error);
96529653

96539654
if (!Error && !BuiltinType.isNull() &&
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// RUN: %clang_cc1 -verify %s
2+
// expected-no-diagnostics
3+
4+
// objc_super has special lookup rules for compatibility with macOS headers, so
5+
// the following should compile.
6+
struct objc_super {};
7+
extern "C" id objc_msgSendSuper(struct objc_super *super, SEL op, ...);
8+
extern "C" void objc_msgSendSuper_stret(struct objc_super *super, SEL op, ...);

0 commit comments

Comments
 (0)