Skip to content

Commit ccd22cc

Browse files
Don't emit throw types at -gline-tables-only. (#63847)
* Caught by the debug-stdlib bots. rdar://105651154 * Revert "[test] disable test for simulators" This reverts commit 8a25ffa.
1 parent f89ec4b commit ccd22cc

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/IRGen/IRGenDebugInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2416,7 +2416,7 @@ IRGenDebugInfoImpl::emitFunction(const SILDebugScope *DS, llvm::Function *Fn,
24162416

24172417
// Get the throws information.
24182418
llvm::DITypeArray Error = nullptr;
2419-
if (FnTy)
2419+
if (FnTy && (Opts.DebugInfoLevel > IRGenDebugInfoLevel::LineTables))
24202420
if (auto ErrorInfo = FnTy->getOptionalErrorResult()) {
24212421
SILType SILTy = IGM.silConv.getSILType(
24222422
*ErrorInfo, FnTy, IGM.getMaximalTypeExpansionContext());

test/DebugInfo/basic.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// REQUIRES: OS=macosx || OS=linux-gnu || OS=windows
2-
// Remove the line above when rdar://105651154 is addressed.
31
// A (no longer) basic test for debug info.
42
// --------------------------------------------------------------------
53
// Verify that we don't emit any debug info by default.

0 commit comments

Comments
 (0)