From 56aa7c79b7d8d29c09c45abd8343cbc45826d1a8 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Wed, 12 Apr 2006 19:28:15 +0000 Subject: [PATCH] Get rid of a signed/unsigned compare warning. llvm-svn: 27625 --- lib/Transforms/Scalar/LoopStrengthReduce.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index ea416dd43ea..d3ac797651f 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -882,7 +882,7 @@ unsigned LoopStrengthReduce::CheckForIVReuse(const SCEVHandle &Stride, I = TLI->legal_am_scale_begin(), E = TLI->legal_am_scale_end(); I != E; ++I) { unsigned Scale = *I; - if (abs(SInt) < Scale || (SInt % Scale) != 0) + if (unsigned(abs(SInt)) < Scale || (SInt % Scale) != 0) continue; std::map::iterator SI = IVsByStride.find(SCEVUnknown::getIntegerSCEV(SInt/Scale, Type::UIntTy));