From 6ac7ba388f384c853c2477fd5bdae905775ad5c3 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 2 Oct 2024 12:01:24 -0400 Subject: [PATCH] ConstProp: rm leftover Signed-off-by: Alyssa Rosenzweig --- FEXCore/Source/Interface/IR/Passes/ConstProp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FEXCore/Source/Interface/IR/Passes/ConstProp.cpp b/FEXCore/Source/Interface/IR/Passes/ConstProp.cpp index e31427dd7b..b0816cb3ca 100644 --- a/FEXCore/Source/Interface/IR/Passes/ConstProp.cpp +++ b/FEXCore/Source/Interface/IR/Passes/ConstProp.cpp @@ -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); }