]> granicus.if.org Git - clang/commit
Add protocol redefinition to the current scope/context
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Sat, 30 Jun 2018 00:49:27 +0000 (00:49 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Sat, 30 Jun 2018 00:49:27 +0000 (00:49 +0000)
commit6b9a1ecb46c73d83b14a841351addfcc78775880
tree3f8aaa00b52046015d80e5ab277831612a2c6782
parente5aa4b4257a7bda80ecc229f8f66fddfa17c93b5
Add protocol redefinition to the current scope/context

Not doing so causes the AST writter to assert since the decl in question
never gets emitted. This is fine when modules is not used, but otherwise
we need to serialize something other than garbage.

rdar://problem/39844933

Differential Revision: https://reviews.llvm.org/D47297

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@336031 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclObjC.cpp
test/Modules/Inputs/protocol-redefinition/Base.framework/Headers/Base.h [new file with mode: 0644]
test/Modules/Inputs/protocol-redefinition/Base.framework/Modules/module.modulemap [new file with mode: 0644]
test/Modules/Inputs/protocol-redefinition/Kit.framework/Headers/Kit.h [new file with mode: 0644]
test/Modules/Inputs/protocol-redefinition/Kit.framework/Modules/module.modulemap [new file with mode: 0644]
test/Modules/protocol-redefinition.m [new file with mode: 0644]