forked from OSchip/llvm-project
[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
This commit is contained in:
parent
c972193583
commit
94c84aca5d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue