Skip to content

Commit

Permalink
Address unsequenced modification warning, fixes JuliaLang#6562
Browse files Browse the repository at this point in the history
  • Loading branch information
ihnorton committed Apr 18, 2014
1 parent ca44f9b commit 752dc20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/debuginfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,10 @@ extern "C" void jl_restore_linedebug_info(uv_lib_t *handle) {

for (size_t j = 0; j < numel; j++) {
// loop over individual {offset, line} entries
uintptr_t offset = (*infoptr++);
uintptr_t line = (*infoptr++);
JITEvent_EmittedFunctionDetails::LineStart linestart =
{ (uintptr_t)fptr + (*infoptr++), DebugLoc::get( (*infoptr++), 0, MDNode::get(jl_LLVMContext, tmpelt) ) };
{ (uintptr_t)fptr + offset, DebugLoc::get( line, 0, MDNode::get(jl_LLVMContext, tmpelt) ) };
linestarts.push_back(linestart);
}
FuncInfo info = { NULL, lengthAdr, std::string(name), std::string(filename), linestarts };
Expand Down

0 comments on commit 752dc20

Please sign in to comment.