summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-02-16 17:26:59 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-02-16 17:26:59 +0000
commit1b81064d1e3555a24eef3c09bc2ccd481eb9b31b (patch)
treea344eeb578bf5caf40de1f0becfb457bde40fbbe /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
parent8c83b9b8c54fc8904e451bb8ee2c57dd304df8c9 (diff)
downloadbcm5719-llvm-1b81064d1e3555a24eef3c09bc2ccd481eb9b31b.tar.gz
bcm5719-llvm-1b81064d1e3555a24eef3c09bc2ccd481eb9b31b.zip
Fix signed/unsigned comparison warning. NFCI.
llvm-svn: 325363
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 8f42c414c4c..72a9c06fd3d 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -1472,7 +1472,7 @@ bool TargetLowering::SimplifyDemandedVectorElts(
M = -1;
}
IdentityLHS &= (M < 0) || (M == (int)i);
- IdentityRHS &= (M < 0) || ((M - NumElts) == (int)i);
+ IdentityRHS &= (M < 0) || ((M - NumElts) == i);
}
// Update legal shuffle masks based on demanded elements if it won't reduce
OpenPOWER on IntegriCloud