Skip to content

Conversation

Michael137
Copy link

This patch is a temporary alternative to llvm#130768

If we detect a situation where a forward declaration is C++ and the definition DIE is Objective-C, then just don't try to complete the type (it would crash otherwise). In the long term we might want to add support for completing such types

rdar://145959981

@Michael137
Copy link
Author

@swift-ci test

…types

This patch is a temporary alternative to llvm#130768

If we detect a situation where a forward declaration is C++ and the definition DIE is Objective-C, then just don't try to complete the type (it would crash otherwise). In the long term we might want to add support for completing such types

rdar://145959981
@Michael137 Michael137 force-pushed the lldb/mixed-objcxx-decls-to-20240723 branch from 4881efd to cfc8aab Compare March 21, 2025 15:45
@Michael137
Copy link
Author

@swift-ci test

@Michael137 Michael137 merged commit 16753ee into stable/20240723 Mar 21, 2025
2 of 3 checks passed
@Michael137 Michael137 deleted the lldb/mixed-objcxx-decls-to-20240723 branch March 21, 2025 23:39
Michael137 added a commit to Michael137/llvm-project that referenced this pull request Sep 3, 2025
…types

This upstreams swiftlang#10313.

If we detect a situation where a forward declaration is C++ and the
definition DIE is Objective-C, then just don't try to complete the type
(it would crash otherwise). In the long term we might want to add
support for completing such types.

We've seen real world crashes when debugging WebKit and wxWidgets because of this.
Both projects forward declare ObjC++ decls in the way shown in the test.

rdar://145959981
Michael137 added a commit to llvm/llvm-project that referenced this pull request Sep 3, 2025
…types (#156681)

This upstreams swiftlang#10313.

If we detect a situation where a forward declaration is C++ and the
definition DIE is Objective-C, then just don't try to complete the type
(it would crash otherwise). In the long term we might want to add
support for completing such types.

We've seen real world crashes when debugging WebKit and wxWidgets
because of this. Both projects forward declare ObjC++ decls in the way
shown in the test.

rdar://145959981
llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Sep 3, 2025
…ective-C++ types (#156681)

This upstreams swiftlang/llvm-project#10313.

If we detect a situation where a forward declaration is C++ and the
definition DIE is Objective-C, then just don't try to complete the type
(it would crash otherwise). In the long term we might want to add
support for completing such types.

We've seen real world crashes when debugging WebKit and wxWidgets
because of this. Both projects forward declare ObjC++ decls in the way
shown in the test.

rdar://145959981
llvmbot pushed a commit to llvmbot/llvm-project that referenced this pull request Sep 3, 2025
…types (llvm#156681)

This upstreams swiftlang#10313.

If we detect a situation where a forward declaration is C++ and the
definition DIE is Objective-C, then just don't try to complete the type
(it would crash otherwise). In the long term we might want to add
support for completing such types.

We've seen real world crashes when debugging WebKit and wxWidgets
because of this. Both projects forward declare ObjC++ decls in the way
shown in the test.

rdar://145959981
(cherry picked from commit a862225)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants