diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-07-10 12:21:35 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-07-10 12:21:35 +0000 |
commit | 94c84aca5d47949fb7c7763925dbd1a627889b4a (patch) | |
tree | c6a0a314996fc2f2b47d176c573717097d5f5b0c | |
parent | c9721935835b1608f1cc0d82f852aa4d2cb39a0d (diff) | |
download | bcm5719-llvm-94c84aca5d47949fb7c7763925dbd1a627889b4a.tar.gz bcm5719-llvm-94c84aca5d47949fb7c7763925dbd1a627889b4a.zip |
[DAGCombine] visitINSERT_SUBVECTOR - use uint64_t subvector index. NFCI.
Keep the uint64_t type from getZExtValue() to stop truncation/extension overflow warnings in MSVC in subvector index math.
llvm-svn: 365621
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 5ec3f190d34..232bfe46dc3 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -19272,7 +19272,7 @@ SDValue DAGCombiner::visitINSERT_SUBVECTOR(SDNode *N) { if (!isa<ConstantSDNode>(N2)) return SDValue(); - unsigned InsIdx = cast<ConstantSDNode>(N2)->getZExtValue(); + uint64_t InsIdx = cast<ConstantSDNode>(N2)->getZExtValue(); // Push subvector bitcasts to the output, adjusting the index as we go. // insert_subvector(bitcast(v), bitcast(s), c1) |