Skip to content

Commit f1b53eb

Browse files
committed
Add artificial debug information to dispatch thunk.
1 parent 89e1969 commit f1b53eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/IRGen/GenDecl.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -2092,6 +2092,8 @@ static void emitDynamicallyReplaceableThunk(IRGenModule &IGM,
20922092
llvm::BasicBlock::Create(IGM.getLLVMContext(), "entry", dispatchFn);
20932093
IRBuilder B(IGM.getLLVMContext(), false);
20942094
B.SetInsertPoint(entryBB);
2095+
if (IGM.DebugInfo)
2096+
IGM.DebugInfo->emitArtificialFunction(B, dispatchFn);
20952097
llvm::Constant *indices[] = {llvm::ConstantInt::get(IGM.Int32Ty, 0),
20962098
llvm::ConstantInt::get(IGM.Int32Ty, 0)};
20972099
auto *fnPtr = B.CreateLoad(

0 commit comments

Comments
 (0)