aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
mode:
authorLaytan <laytanlaats@hotmail.com>2025-11-08 22:00:39 +0100
committerGitHub <noreply@github.com>2025-11-08 22:00:39 +0100
commit58a66c3017f03d8b937a2fd56b39b014228d3b90 (patch)
tree35e800602bae19013d4a8c7cf2d487e544a3386a /src/check_decl.cpp
parentd25839dd8c46d0e9f89ac8d0f4fa97a3f32a48cd (diff)
parent3a07a324117cc7562ecb3de2be7bb7aeb3b398fb (diff)
Merge pull request #5902 from harold-b/hb.no-foreign-proc-check-on-imported-objc-methods
Don't check proc signature similarity for imported Objective-C methods
Diffstat (limited to 'src/check_decl.cpp')
-rw-r--r--src/check_decl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp
index e54943d80..27babd255 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -1607,8 +1607,7 @@ gb_internal void check_proc_decl(CheckerContext *ctx, Entity *e, DeclInfo *d) {
if (is_arch_wasm() && foreign_library != nullptr) {
// NOTE(bill): this must be delayed because the foreign import paths might not be evaluated yet until much later
mpsc_enqueue(&ctx->info->foreign_decls_to_check, e);
- } else {
- // TODO(harold): Check if it's an objective-C foreign, if so, I don't think we need to check it.
+ } else if (!e->Procedure.is_objc_impl_or_import) {
check_foreign_procedure(ctx, e, d);
}
} else {