Skip to content

Commit

Permalink
[WebAssembly] Fix GCC 5 build.
Browse files Browse the repository at this point in the history
Hans' speculative fix in b7292f2
didn't work for me. This seems to.
  • Loading branch information
topperc committed Jul 30, 2020
1 parent 4d83aa4 commit 3632f76
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion llvm/lib/Target/WebAssembly/WebAssemblySortRegion.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 3632f76

Please sign in to comment.