ConstProp: rm leftover

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
Alyssa Rosenzweig 2024-10-02 12:01:24 -04:00
parent 36d0a67070
commit 6ac7ba388f

View File

@ -189,7 +189,7 @@ void ConstProp::HandleConstantPools(IREmitter* IREmit, const IRListView& Current
uint32_t Value = IROp->Args[i].ID().Value;
LOGMAN_THROW_A_FMT(Value < SSACount, "src not yet remapped");
Ref New = Value < SSACount ? Remap[Value] : NULL;
Ref New = Remap[Value];
if (New) {
IREmit->ReplaceNodeArgument(CodeNode, i, New);
}