aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2011-07-27 06:22:51 +0000
committerJeffrey Yasskin <jyasskin@google.com>2011-07-27 06:22:51 +0000
commit6381c0100bd2ec50130942696cdc1662b93c6a02 (patch)
tree92413d1090b82b6cc72b2cf5c2eafac913a7ef6a /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
parentfb65e592e05a83eaa3e9cbd645bace6c68438500 (diff)
downloadllvm-6381c0100bd2ec50130942696cdc1662b93c6a02.zip
llvm-6381c0100bd2ec50130942696cdc1662b93c6a02.tar.gz
llvm-6381c0100bd2ec50130942696cdc1662b93c6a02.tar.bz2
Explicitly cast narrowing conversions inside {}s that will become errors in
C++0x. llvm-svn: 136211
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 649a38a..a101df0 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -2778,7 +2778,8 @@ void SelectionDAGBuilder::visitShuffleVector(const User &I) {
// Analyze the access pattern of the vector to see if we can extract
// two subvectors and do the shuffle. The analysis is done by calculating
// the range of elements the mask access on both vectors.
- int MinRange[2] = { SrcNumElts+1, SrcNumElts+1};
+ int MinRange[2] = { static_cast<int>(SrcNumElts+1),
+ static_cast<int>(SrcNumElts+1)};
int MaxRange[2] = {-1, -1};
for (unsigned i = 0; i != MaskNumElts; ++i) {