[Lldb-commits] [lldb] 26c9598 - [lldb] Fix TestIvarProtocols to use +new instead of +alloc (NFC) (#172740)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Dec 17 13:48:56 PST 2025
Author: Dave Lee
Date: 2025-12-17T13:48:52-08:00
New Revision: 26c9598c103addd5882e4de69e80290ba401ac61
URL: https://github.com/llvm/llvm-project/commit/26c9598c103addd5882e4de69e80290ba401ac61
DIFF: https://github.com/llvm/llvm-project/commit/26c9598c103addd5882e4de69e80290ba401ac61.diff
LOG: [lldb] Fix TestIvarProtocols to use +new instead of +alloc (NFC) (#172740)
A test failure on green dragon shows the ivars with unexpected values.
This makes the test us an explicit `+new` instead of `+alloc` (which is
missing an `-init` call).
Added:
Modified:
lldb/test/API/lang/objc/objc-ivar-protocols/main.m
Removed:
################################################################################
diff --git a/lldb/test/API/lang/objc/objc-ivar-protocols/main.m b/lldb/test/API/lang/objc/objc-ivar-protocols/main.m
index aa6c4715c33bb..905587fdda1c7 100644
--- a/lldb/test/API/lang/objc/objc-ivar-protocols/main.m
+++ b/lldb/test/API/lang/objc/objc-ivar-protocols/main.m
@@ -27,7 +27,7 @@ int main ()
{
@autoreleasepool
{
- MyClass *c = [MyClass alloc];
+ MyClass *c = [MyClass new];
[c doSomething];
}
}
More information about the lldb-commits
mailing list