summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-11-30 18:42:08 +0000
committerDan Gohman <dan433584@gmail.com>2015-11-30 18:42:08 +0000
commit96029f7880778a1a45932b71513c62124c877cd9 (patch)
treef70396f77a32407a31aa8ef56a98ff92421f109a
parent239be1fb0d63a46205170fd6b439dadb969997eb (diff)
downloadbcm5719-llvm-96029f7880778a1a45932b71513c62124c877cd9.tar.gz
bcm5719-llvm-96029f7880778a1a45932b71513c62124c877cd9.zip
[WebAssembly] Fix a few minor compiler warnings. NFC.
llvm-svn: 254311
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
index 72891042216..dbd00bc10b1 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
@@ -162,9 +162,9 @@ static void SortBlocks(MachineFunction &MF, const MachineLoopInfo &MLI) {
SmallPtrSet<MachineBasicBlock *, 16> Visited;
SmallVector<POStackEntry, 16> Stack;
- MachineBasicBlock *Entry = &*MF.begin();
- Visited.insert(Entry);
- Stack.push_back(POStackEntry(Entry, MF, MLI));
+ MachineBasicBlock *EntryBlock = &*MF.begin();
+ Visited.insert(EntryBlock);
+ Stack.push_back(POStackEntry(EntryBlock, MF, MLI));
for (;;) {
POStackEntry &Entry = Stack.back();
@@ -220,7 +220,7 @@ static void SortBlocks(MachineFunction &MF, const MachineLoopInfo &MLI) {
#endif
}
-static int GetLoopDepth(const MachineLoop *Loop) {
+static unsigned GetLoopDepth(const MachineLoop *Loop) {
return Loop ? Loop->getLoopDepth() : 0;
}
@@ -249,12 +249,12 @@ static void PlaceBlockMarkers(MachineBasicBlock &MBB,
MachineBasicBlock::iterator InsertPos;
MachineLoop *HeaderLoop = MLI.getLoopFor(Header);
- int MBBLoopDepth = GetLoopDepth(MLI.getLoopFor(&MBB));
- int HeaderLoopDepth = GetLoopDepth(HeaderLoop);
+ unsigned MBBLoopDepth = GetLoopDepth(MLI.getLoopFor(&MBB));
+ unsigned HeaderLoopDepth = GetLoopDepth(HeaderLoop);
if (HeaderLoopDepth > MBBLoopDepth) {
// The nearest common dominating point is more deeply nested. Insert the
// BLOCK just above the LOOP.
- for (int i = 0; i < HeaderLoopDepth - 1 - MBBLoopDepth; ++i)
+ for (unsigned i = 0; i < HeaderLoopDepth - 1 - MBBLoopDepth; ++i)
HeaderLoop = HeaderLoop->getParentLoop();
Header = HeaderLoop->getHeader();
InsertPos = Header->begin();
OpenPOWER on IntegriCloud