Skip to content

Commit 47f76b8

Browse files
committed
simplify preprocessProfile
Created using spr 1.3.4
1 parent 5e60356 commit 47f76b8

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

bolt/lib/Profile/DataAggregator.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -518,13 +518,12 @@ Error DataAggregator::preprocessProfile(BinaryContext &BC) {
518518
deleteTempFiles();
519519

520520
heatmap:
521-
if (opts::HeatmapMode) {
522-
if (std::error_code EC = printLBRHeatMap())
523-
return errorCodeToError(EC);
524-
exit(0);
525-
}
521+
if (!opts::HeatmapMode)
522+
return Error::success();
526523

527-
return Error::success();
524+
if (std::error_code EC = printLBRHeatMap())
525+
return errorCodeToError(EC);
526+
exit(0);
528527
}
529528

530529
Error DataAggregator::readProfile(BinaryContext &BC) {

0 commit comments

Comments
 (0)