[WebAssembly] Fix GCC 5 build.

Hans' speculative fix in b7292f2db0
didn't work for me. This seems to.
This commit is contained in:
Craig Topper 2020-07-30 09:54:02 -07:00
parent 4d83aa4771
commit 3632f765dc
1 changed files with 5 additions and 1 deletions

View File

@ -5,10 +5,14 @@
using namespace llvm;
using namespace WebAssembly;
namespace llvm {
namespace WebAssembly {
template <>
bool llvm::WebAssembly::ConcreteSortRegion<MachineLoop>::isLoop() const {
bool ConcreteSortRegion<MachineLoop>::isLoop() const {
return true;
}
} // end namespace WebAssembly
} // end namespace llvm
const SortRegion *SortRegionInfo::getRegionFor(const MachineBasicBlock *MBB) {
const auto *ML = MLI.getLoopFor(MBB);