This is an archive of the discontinued LLVM Phabricator instance.

[Modules][Objective-C] Use complete decl from module when diagnosing missing import
ClosedPublic

Authored by bruno on Aug 29 2019, 4:36 PM.

Details

Summary

Otherwise the definition (first found) for ObjCInterfaceDecl's might
precede the module one, which will eventually lead to crash, since
diagnoseMissingImport needs one coming from a module.

This behavior changed after Richard's r342018, which started to look
into the definition of ObjCInterfaceDecls.

rdar://problem/49237144

Diff Detail

Repository
rL LLVM