diff options
author | Félix Cloutier <fcloutier@apple.com> | 2021-11-10 18:03:36 -0800 |
---|---|---|
committer | Félix Cloutier <fcloutier@apple.com> | 2021-11-12 13:35:43 -0800 |
commit | 12ab3e6c8402078f58959847277858eb47a43a19 (patch) | |
tree | 7a9fda42979c3654d45f12c4e26333e5de170538 /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | |
parent | 4602f52d482c5752d6a4c13108f29f0be39598c8 (diff) | |
download | llvm-12ab3e6c8402078f58959847277858eb47a43a19.zip llvm-12ab3e6c8402078f58959847277858eb47a43a19.tar.gz llvm-12ab3e6c8402078f58959847277858eb47a43a19.tar.bz2 |
format_arg attribute does not support nullable instancetype return type
* The format_arg attribute tells the compiler that the attributed function
returns a format string that is compatible with a format string that is being
passed as a specific argument.
* Several NSString methods return copies of their input, so they would ideally
have the format_arg attribute. A previous differential (D112670) added
support for instancetype methods having the format_arg attribute when used
in the context of NSString method declarations.
* D112670 failed to account that instancetype can be sugared in certain narrow
(but critical) scenarios, like by using nullability specifiers. This patch
resolves this problem.
Differential Revision: https://reviews.llvm.org/D113636
Reviewed By: ahatanak
Radar-Id: rdar://85278860
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
0 files changed, 0 insertions, 0 deletions