summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2015-02-17 11:20:11 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2015-02-17 11:20:11 +0000
commiteb97f92489d8c4408102acf5c5e0ff0497bd5878 (patch)
tree634aa51e2879833b02f03bfe91648f9b9535deb9 /llvm/lib
parent8d62e098ef578837ea35416b8b56694397bb3147 (diff)
downloadbcm5719-llvm-eb97f92489d8c4408102acf5c5e0ff0497bd5878.tar.gz
bcm5719-llvm-eb97f92489d8c4408102acf5c5e0ff0497bd5878.zip
[X86] Silence -Wsign-compare warnings.
GCC 4.8 reported two new warnings due to comparisons between signed and unsigned integer expressions. The new warnings were accidentally introduced by revision 229480. Added explicit casts to silence the warnings. No functional change intended. llvm-svn: 229488
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 1bdd6fead9d..a08ac33065d 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -24946,7 +24946,7 @@ static SDValue VectorZextCombine(SDNode *N, SelectionDAG &DAG,
unsigned ResSize = N1.getValueType().getScalarSizeInBits();
// Make sure the splat matches the mask we expect
if (SplatBitSize > ResSize ||
- (SplatValue + 1).exactLogBase2() != SrcSize)
+ (SplatValue + 1).exactLogBase2() != (int)SrcSize)
return SDValue();
// Make sure the input and output size make sense
@@ -24966,7 +24966,7 @@ static SDValue VectorZextCombine(SDNode *N, SelectionDAG &DAG,
break;
}
} else {
- if (Shuffle->getMaskElt(i) != (i / ZextRatio)) {
+ if (Shuffle->getMaskElt(i) != (int)(i / ZextRatio)) {
// Expected element number
IsZext = false;
break;
OpenPOWER on IntegriCloud