Skip to content

Commit 03a3088

Browse files
committed
[cxx-interop] Re-enable round tripping for debug types.
1 parent f8bf74b commit 03a3088

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
@@ -913,9 +913,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
913913
Mangle::ASTMangler Mangler;
914914
std::string Result = Mangler.mangleTypeForDebugger(Ty, Sig);
915915

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

0 commit comments

Comments
 (0)