Skip to content

Commit 38a8ec5

Browse files
committed
fixup! Add assertion to ensure the size of OutChains
1 parent 0ffff6d commit 38a8ec5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8478,6 +8478,7 @@ SDValue RISCVTargetLowering::lowerINIT_TRAMPOLINE(SDValue Op,
84788478
MachinePointerInfo(TrmpAddr, OffsetValue.Offset)));
84798479
}
84808480

8481+
assert(OutChains.size() == StaticChainIdx + 2 && "Size of OutChains mismatch");
84818482
SDValue StoreToken = DAG.getNode(ISD::TokenFactor, dl, MVT::Other, OutChains);
84828483

84838484
// The end of instructions of trampoline is the same as the static chain

0 commit comments

Comments
 (0)