Commit 6d7c4d78 authored by Farazmand's avatar Farazmand Committed by Commit Bot

PPC/s390: casting the output of split type to an integer

A compiler may not implicitly cast the output of first->spill_type() to an integer, adding a cast to fix the problem

Change-Id: Ic4e779d447fba9d040b81ee315327b631dfd6ad3
Reviewed-on: https://chromium-review.googlesource.com/c/1480913Reviewed-by: 's avatarStephan Herhut <herhut@chromium.org>
Reviewed-by: 's avatarSigurd Schneider <sigurds@chromium.org>
Commit-Queue: Stephan Herhut <herhut@chromium.org>
Cr-Commit-Position: refs/heads/master@{#59786}
parent 7803fa68
......@@ -2990,7 +2990,7 @@ void RegisterAllocator::Spill(LiveRange* range, SpillMode spill_mode) {
TRACE("Spilling live range %d:%d mode %d\n", first->vreg(),
range->relative_id(), spill_mode);
TRACE("Starting spill type is %d\n", first->spill_type());
TRACE("Starting spill type is %d\n", static_cast<int>(first->spill_type()));
if (first->HasNoSpillType()) {
TRACE("New spill range needed");
data()->AssignSpillRangeToLiveRange(first, spill_mode);
......@@ -3003,7 +3003,7 @@ void RegisterAllocator::Spill(LiveRange* range, SpillMode spill_mode) {
TRACE("Upgrading\n");
first->set_spill_type(TopLevelLiveRange::SpillType::kSpillRange);
}
TRACE("Final spill type is %d\n", first->spill_type());
TRACE("Final spill type is %d\n", static_cast<int>(first->spill_type()));
range->Spill();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment