Skip to content

Commit 34c5c95

Browse files
committed
Don't emit throw types at -gline-tables-only.
Caught by the debug-stdlib bots. rdar://105651154
1 parent 1e49c3b commit 34c5c95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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());

0 commit comments

Comments
 (0)