diff options
author | Pierre Habouzit <phabouzit@apple.com> | 2020-01-22 08:46:54 -0800 |
---|---|---|
committer | Pierre Habouzit <phabouzit@apple.com> | 2020-01-30 18:17:45 -0800 |
commit | 6eb969b7c5b5195d7f85b70e2e060eb2989cdc3c (patch) | |
tree | 9eed1ab2cc64ce2278ce73365f9df7eafea04391 /llvm/lib/IR/Module.cpp | |
parent | 31905c2bbb80f79366d92fc6426818fb20896659 (diff) | |
download | llvm-6eb969b7c5b5195d7f85b70e2e060eb2989cdc3c.zip llvm-6eb969b7c5b5195d7f85b70e2e060eb2989cdc3c.tar.gz llvm-6eb969b7c5b5195d7f85b70e2e060eb2989cdc3c.tar.bz2 |
[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: Pierre Habouzit <phabouzit@apple.com>
Differential Revision: https://reviews.llvm.org/D73208
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions