Skip to content

Commit 1a2f521

Browse files
committed
[Debug info] Make sure we establish a generic scope for the thrown error type
1 parent 3c5e9cb commit 1a2f521

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/IRGen/IRGenDebugInfo.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2476,6 +2476,7 @@ IRGenDebugInfoImpl::emitFunction(const SILDebugScope *DS, llvm::Function *Fn,
24762476
llvm::DITypeArray Error = nullptr;
24772477
if (FnTy && (Opts.DebugInfoLevel > IRGenDebugInfoLevel::LineTables))
24782478
if (auto ErrorInfo = FnTy->getOptionalErrorResult()) {
2479+
GenericContextScope scope(IGM, FnTy->getInvocationGenericSignature());
24792480
SILType SILTy = IGM.silConv.getSILType(
24802481
*ErrorInfo, FnTy, IGM.getMaximalTypeExpansionContext());
24812482
auto DTI = DebugTypeInfo::getFromTypeInfo(

0 commit comments

Comments
 (0)