Skip to content

Commit 6dca3b5

Browse files
committed
check TraceBF
Created using spr 1.3.4
1 parent 3e01bf6 commit 6dca3b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/lib/Profile/DataAggregator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1426,7 +1426,7 @@ void DataAggregator::parseLBRSample(const PerfBranchSample &Sample,
14261426
const BinaryFunction *TraceBF =
14271427
getBinaryFunctionContainingAddress(TraceFrom);
14281428
FTInfo &Info = FallthroughLBRs[Trace(TraceFrom, TraceTo)];
1429-
if (TraceBF->containsAddress(LBR.From))
1429+
if (TraceBF && TraceBF->containsAddress(LBR.From))
14301430
++Info.InternCount;
14311431
else
14321432
++Info.ExternCount;

0 commit comments

Comments
 (0)