Skip to content

Commit 0ec567c

Browse files
committed
Revert "[lldb][ObjC] Don't query objective-c runtime for decls in C++ contexts (#95963)"
This reverts commit dadf960. The commit caused `TestEarlyProcessLaunch.py` to fail on the macOS bots.
1 parent afb3f7e commit 0ec567c

File tree

3 files changed

+1
-29
lines changed

3 files changed

+1
-29
lines changed

lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ void ClangASTSource::FindExternalVisibleDecls(
637637
FindDeclInModules(context, name);
638638
}
639639

640-
if (!context.m_found_type && m_ast_context->getLangOpts().ObjC) {
640+
if (!context.m_found_type) {
641641
FindDeclInObjCRuntime(context, name);
642642
}
643643
}

lldb/test/API/lang/objcxx/objc-from-cpp-frames-without-debuginfo/TestObjCFromCppFramesWithoutDebugInfo.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,4 @@ def test(self):
1515
(_, process, _, _) = lldbutil.run_to_name_breakpoint(self, "main")
1616

1717
self.assertState(process.GetState(), lldb.eStateStopped)
18-
19-
# Tests that we can use builtin Objective-C identifiers.
2018
self.expect("expr id", error=False)
21-
22-
# Tests that we can lookup Objective-C decls in the ObjC runtime plugin.
23-
self.expect_expr(
24-
"NSString *c; c == nullptr", result_value="true", result_type="bool"
25-
)

lldb/test/Shell/Expr/TestObjCInCXXContext.test

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)