Skip to content
Commit 6eb969b7 authored by Pierre Habouzit's avatar Pierre Habouzit
Browse files

[objc_direct] fix codegen for mismatched Decl/Impl return types

For non direct methods, the codegen uses the type of the Implementation.
Because Objective-C rules allow some differences between the Declaration
and Implementation return types, when the Implementation is in this
translation unit, the type of the Implementation should be preferred to
emit the Function over the Declaration.

Radar-Id: rdar://problem/58797748


Signed-off-by: default avatarPierre Habouzit <phabouzit@apple.com>
Differential Revision: https://reviews.llvm.org/D73208
parent 31905c2b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment