[llvm] 3632f76 - [WebAssembly] Fix GCC 5 build.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 30 10:00:51 PDT 2020
Author: Craig Topper
Date: 2020-07-30T10:00:28-07:00
New Revision: 3632f765dc6a95a903864585056d1caa9185bd00
URL: https://github.com/llvm/llvm-project/commit/3632f765dc6a95a903864585056d1caa9185bd00
DIFF: https://github.com/llvm/llvm-project/commit/3632f765dc6a95a903864585056d1caa9185bd00.diff
LOG: [WebAssembly] Fix GCC 5 build.
Hans' speculative fix in b7292f2db02d37c9291afc0613a3fbce0a4ad4e8
didn't work for me. This seems to.
Added:
Modified:
llvm/lib/Target/WebAssembly/WebAssemblySortRegion.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblySortRegion.cpp b/llvm/lib/Target/WebAssembly/WebAssemblySortRegion.cpp
index 6b3957e3ec55..cd84e68aed14 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblySortRegion.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblySortRegion.cpp
@@ -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);
More information about the llvm-commits
mailing list