Skip to content

Commit 523ae8e

Browse files
committed
[cxx-interop] Re-enable round tripping for debug types.
1 parent d069fff commit 523ae8e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/IRGen/IRGenDebugInfo.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -912,9 +912,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
912912
Mangle::ASTMangler Mangler;
913913
std::string Result = Mangler.mangleTypeForDebugger(Ty, Sig);
914914

915-
// TODO(https://github.com/apple/swift/issues/57699): We currently cannot round trip some C++ types.
916-
if (!Opts.DisableRoundTripDebugTypes &&
917-
!Ty->getASTContext().LangOpts.EnableCXXInterop) {
915+
if (!Opts.DisableRoundTripDebugTypes) {
918916
// Make sure we can reconstruct mangled types for the debugger.
919917
auto &Ctx = Ty->getASTContext();
920918
Type Reconstructed = Demangle::getTypeForMangling(Ctx, Result);

0 commit comments

Comments
 (0)