[starvation] fix bug in starting location of trace

Summary: The trace starts always at a dummy location. Fix.

Reviewed By: ezgicicek

Differential Revision: D17981065

fbshipit-source-id: 2807a04fe
master
Nikos Gorogiannis 5 years ago committed by Facebook Github Bot
parent 0e116c5557
commit 6d78026e8e

@ -270,7 +270,7 @@ module CriticalPair = struct
let make_trace ?(header = "") ?(include_acquisitions = true) top_pname
{elem= {acquisitions; event}; trace; loc} =
({elem= {acquisitions; event}; trace; loc} as pair) =
let acquisitions_map =
if include_acquisitions then
Acquisitions.fold
@ -283,7 +283,7 @@ module CriticalPair = struct
in
let header_step =
let description = F.asprintf "%s%a" header pname_pp top_pname in
let loc = Location.dummy in
let loc = get_loc pair in
Errlog.make_trace_element 0 loc description []
in
(* construct the trace segment starting at [call_site] and ending at next call *)

Loading…
Cancel
Save