[PATCH] D50472: Fix wasm backend compilation on gcc 5.4: variable name cannot match class
Heejin Ahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 9 15:36:05 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL339398: [WebAssembly] Fix wasm backend compilation on gcc 5.4: variable name cannot… (authored by aheejin, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D50472?vs=159780&id=160023#toc
Repository:
rL LLVM
https://reviews.llvm.org/D50472
Files:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyCFGSort.cpp
Index: llvm/trunk/lib/Target/WebAssembly/WebAssemblyCFGSort.cpp
===================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyCFGSort.cpp
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyCFGSort.cpp
@@ -212,15 +212,15 @@
/// Bookkeeping for a region to help ensure that we don't mix blocks not
/// dominated by the its header among its blocks.
struct Entry {
- const Region *Region;
+ const Region *TheRegion;
unsigned NumBlocksLeft;
/// List of blocks not dominated by Loop's header that are deferred until
/// after all of Loop's blocks have been seen.
std::vector<MachineBasicBlock *> Deferred;
explicit Entry(const class Region *R)
- : Region(R), NumBlocksLeft(R->getNumBlocks()) {}
+ : TheRegion(R), NumBlocksLeft(R->getNumBlocks()) {}
};
} // end anonymous namespace
@@ -274,7 +274,7 @@
// the last block in an active region, take it off the list and pick up
// any blocks deferred because the header didn't dominate them.
for (Entry &E : Entries)
- if (E.Region->contains(MBB) && --E.NumBlocksLeft == 0)
+ if (E.TheRegion->contains(MBB) && --E.NumBlocksLeft == 0)
for (auto DeferredBlock : E.Deferred)
Ready.push(DeferredBlock);
while (!Entries.empty() && Entries.back().NumBlocksLeft == 0)
@@ -299,7 +299,7 @@
// If X isn't dominated by the top active region header, defer it until
// that region is done.
if (!Entries.empty() &&
- !MDT.dominates(Entries.back().Region->getHeader(), Next)) {
+ !MDT.dominates(Entries.back().TheRegion->getHeader(), Next)) {
Entries.back().Deferred.push_back(Next);
Next = nullptr;
continue;
@@ -329,7 +329,7 @@
// If Next isn't dominated by the top active region header, defer it
// until that region is done.
if (!Entries.empty() &&
- !MDT.dominates(Entries.back().Region->getHeader(), Next)) {
+ !MDT.dominates(Entries.back().TheRegion->getHeader(), Next)) {
Entries.back().Deferred.push_back(Next);
continue;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50472.160023.patch
Type: text/x-patch
Size: 2160 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180809/d696485a/attachment.bin>
More information about the llvm-commits
mailing list