diff --git a/ctx.cpp b/ctx.cpp index d0aa9ef2..6f5f002f 100644 --- a/ctx.cpp +++ b/ctx.cpp @@ -425,6 +425,7 @@ FunctionEmitContext::FunctionEmitContext(Function *func, Symbol *funSym, isStatic, true, /* is defn */ firstLine, flags, isOptimized); + llvmFunction->setSubprogram(diSubprogram); #endif /* And start a scope representing the initial function scope */