[polly] r305717 - Fix -Wsign-compare in ScopInfo.cpp
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 19 10:44:03 PDT 2017
Author: rnk
Date: Mon Jun 19 12:44:02 2017
New Revision: 305717
URL: http://llvm.org/viewvc/llvm-project?rev=305717&view=rev
Log:
Fix -Wsign-compare in ScopInfo.cpp
llvm::Loop::getNumBlocks returns an unsigned int, not a long.
Modified:
polly/trunk/lib/Analysis/ScopInfo.cpp
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=305717&r1=305716&r2=305717&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Mon Jun 19 12:44:02 2017
@@ -2551,8 +2551,8 @@ static inline Loop *getRegionNodeLoop(Re
/// subsequently speculate away.
///
/// @see getRegionNodeLoop for additional details.
-long getNumBlocksInLoop(Loop *L) {
- long NumBlocks = L->getNumBlocks();
+unsigned getNumBlocksInLoop(Loop *L) {
+ unsigned NumBlocks = L->getNumBlocks();
SmallVector<llvm::BasicBlock *, 4> ExitBlocks;
L->getExitBlocks(ExitBlocks);
More information about the llvm-commits
mailing list