diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2017-02-18 22:40:58 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2017-02-18 22:40:58 +0000 |
| commit | 7a87eebcad1693d45725e143a53ddc0b162d14d3 (patch) | |
| tree | 7216284b92266f91c0a100dbdbd06637289371e2 /llvm/lib | |
| parent | 2e78c94ea5570032e0e3f0a12d269c694665cf8e (diff) | |
| download | bcm5719-llvm-7a87eebcad1693d45725e143a53ddc0b162d14d3.tar.gz bcm5719-llvm-7a87eebcad1693d45725e143a53ddc0b162d14d3.zip | |
[X86] Fix enumeral/non-enumeral comparison warning.
gcc only allows you to mix enums / ints if they have the same signedness.
llvm-svn: 295576
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 2a3179709c9..5f4568e1a91 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -5738,7 +5738,7 @@ static bool getFauxShuffleMask(SDValue N, SmallVectorImpl<int> &Mask, // Attempt to recognise a PINSR*(VEC, 0, Idx) shuffle pattern. if (X86::isZeroNode(InScl)) { Ops.push_back(InVec); - for (unsigned i = 0; i != NumElts; ++i) + for (int i = 0; i != (int)NumElts; ++i) Mask.push_back(i == InIdx ? SM_SentinelZero : i); return true; } |

