mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Fix PR18162 - Incorrect assertion assumed that the SDValue resno is zero.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196858 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -9859,7 +9859,7 @@ SDValue DAGCombiner::visitCONCAT_VECTORS(SDNode *N) {
|
||||
if (N->getNumOperands() == 2 &&
|
||||
N->getOperand(1)->getOpcode() == ISD::UNDEF) {
|
||||
SDValue In = N->getOperand(0);
|
||||
assert(In->getValueType(0).isVector() && "Must concat vectors");
|
||||
assert(In.getValueType().isVector() && "Must concat vectors");
|
||||
|
||||
// Transform: concat_vectors(scalar, undef) -> scalar_to_vector(sclr).
|
||||
if (In->getOpcode() == ISD::BITCAST &&
|
||||
|
Reference in New Issue
Block a user