[llvm-commits] [llvm] r56040 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
Dan Gohman
gohman at apple.com
Tue Sep 9 18:09:33 PDT 2008
Author: djg
Date: Tue Sep 9 20:09:32 2008
New Revision: 56040
URL: http://llvm.org/viewvc/llvm-project?rev=56040&view=rev
Log:
Fix a warning about comparing signed and unsigned values.
Modified:
llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp?rev=56040&r1=56039&r2=56040&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp Tue Sep 9 20:09:32 2008
@@ -1486,7 +1486,7 @@
bool NewUndefElts = false;
for (unsigned i = 0; i < VWidth; i++) {
unsigned MaskVal = Shuffle->getMaskValue(i);
- if (MaskVal == -1) {
+ if (MaskVal == -1u) {
uint64_t NewBit = 1ULL << i;
UndefElts |= NewBit;
} else if (MaskVal < VWidth) {
More information about the llvm-commits
mailing list