Skip to content

Commit 9ec9431

Browse files
authored
Merge pull request #39886 from zoecarver/disable-round-trip-for-cxx
[cxx-interop] Disable round trip checking for C++ debug types.
2 parents c89bd8f + bd71c84 commit 9ec9431

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)