diff options
Diffstat (limited to 'lib/ExecutionEngine/JIT/JITEmitter.cpp')
-rw-r--r-- | lib/ExecutionEngine/JIT/JITEmitter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp index a2df2d0..7b8ab9e 100644 --- a/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -825,7 +825,8 @@ void JITEmitter::processDebugLoc(DebugLoc DL, bool BeforePrintingInsn) { if (!BeforePrintingInsn) return; // FIXME: This is horribly inefficient. - DILocation CurDLT(DL.getAsMDNode(CurFn->getContext())); + DILocation CurDLT(DL.getAsMDNode( + EmissionDetails.MF->getFunction()->getContext())); if (CurDLT.getScope().getNode() != 0 && PrevDLT.getNode() !=CurDLT.getNode()){ JITEvent_EmittedFunctionDetails::LineStart NextLine; |