Merge remote-tracking branch 'origin/main' into rebranch

This commit is contained in:
swift-ci
2022-05-31 14:35:31 -07:00
12 changed files with 188 additions and 94 deletions

View File

@@ -915,7 +915,6 @@ private:
if (!Opts.DisableRoundTripDebugTypes &&
!Ty->getASTContext().LangOpts.EnableCXXInterop) {
// Make sure we can reconstruct mangled types for the debugger.
#ifndef NDEBUG
auto &Ctx = Ty->getASTContext();
Type Reconstructed = Demangle::getTypeForMangling(Ctx, Result);
if (!Reconstructed) {
@@ -936,7 +935,6 @@ private:
Reconstructed->dump(llvm::errs());
abort();
}
#endif
}
return BumpAllocatedString(Result);