Skip to content

Commit bd71c84

Browse files
committed
[cxx-interop] Disable round trip checking for C++ debug types.
This doesn't work for some C++ types, so, as a stop gap solution, I'm disabling it when C++ interop is enabled. https://bugs.swift.org/browse/SR-15377 to re-enable it in the future.
1 parent 8259242 commit bd71c84

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/IRGen/IRGenDebugInfo.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,9 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
884884
Mangle::ASTMangler Mangler;
885885
std::string Result = Mangler.mangleTypeForDebugger(Ty, Sig);
886886

887-
if (!Opts.DisableRoundTripDebugTypes) {
887+
// TODO(SR-15377): We currently cannot round trip some C++ types.
888+
if (!Opts.DisableRoundTripDebugTypes &&
889+
!Ty->getASTContext().LangOpts.EnableCXXInterop) {
888890
// Make sure we can reconstruct mangled types for the debugger.
889891
#ifndef NDEBUG
890892
auto &Ctx = Ty->getASTContext();

0 commit comments

Comments
 (0)