Commit bdf4224f authored by Qiu Chaofan's avatar Qiu Chaofan
Browse files

[NFC] Add explicit instantiation to releaseNode

Resolve a build failure about undefined symbols introduced by f9f78cf6.

Differential Revision: https://reviews.llvm.org/D72069
parent 404da13e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2088,6 +2088,11 @@ getOtherResourceCount(unsigned &OtherCritIdx) {
  return OtherCritCount;
}

template void SchedBoundary::releaseNode<true>(SUnit *SU, unsigned ReadyCycle,
                                               unsigned Idx);
template void SchedBoundary::releaseNode<false>(SUnit *SU, unsigned ReadyCycle,
                                                unsigned Idx);

template <bool InPQueue>
void SchedBoundary::releaseNode(SUnit *SU, unsigned ReadyCycle, unsigned Idx) {
  assert(SU->getInstr() && "Scheduled SUnit must have instr");