[clang] Allow direct dispatch for the ObjFW runtime (PR #126382)

Jonathan Schleifer via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 8 10:01:23 PST 2025


https://github.com/Midar created https://github.com/llvm/llvm-project/pull/126382

There was no reason for it to ever be disabled.

>From 28cc71ac247b1fc8d4d9d4ecd7ea3f210bca3ef2 Mon Sep 17 00:00:00 2001
From: Jonathan Schleifer <js at nil.im>
Date: Sat, 8 Feb 2025 12:12:21 +0100
Subject: [PATCH] Allow direct dispatch for the ObjFW runtime

There was no reason for it to ever be disabled.
---
 clang/include/clang/Basic/ObjCRuntime.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/include/clang/Basic/ObjCRuntime.h b/clang/include/clang/Basic/ObjCRuntime.h
index 1ccf60f0b7bee70..df42b4389861118 100644
--- a/clang/include/clang/Basic/ObjCRuntime.h
+++ b/clang/include/clang/Basic/ObjCRuntime.h
@@ -473,7 +473,7 @@ class ObjCRuntime {
     case GCC: return false;
     case GNUstep:
       return (getVersion() >= VersionTuple(2, 2));
-    case ObjFW: return false;
+    case ObjFW: return true;
     }
     llvm_unreachable("bad kind");
   }



More information about the cfe-commits mailing list