mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-14 08:12:16 +00:00
fix ASSERT_MSG arguments (#2337)
This commit is contained in:
parent
e0d85a7e58
commit
f8f732e78c
1 changed files with 2 additions and 2 deletions
|
@ -219,7 +219,7 @@ void FlattenExtendedUserdataPass(IR::Program& program) {
|
||||||
};
|
};
|
||||||
auto base0 = IR::BreadthFirstSearch(ptr_composite->Arg(0), pred);
|
auto base0 = IR::BreadthFirstSearch(ptr_composite->Arg(0), pred);
|
||||||
auto base1 = IR::BreadthFirstSearch(ptr_composite->Arg(1), pred);
|
auto base1 = IR::BreadthFirstSearch(ptr_composite->Arg(1), pred);
|
||||||
ASSERT_MSG(base0 && base1 && "ReadConst not from constant memory");
|
ASSERT_MSG(base0 && base1, "ReadConst not from constant memory");
|
||||||
|
|
||||||
IR::Inst* ptr_lo = base0.value();
|
IR::Inst* ptr_lo = base0.value();
|
||||||
ptr_lo = pass_info.DeduplicateInstruction(ptr_lo);
|
ptr_lo = pass_info.DeduplicateInstruction(ptr_lo);
|
||||||
|
@ -250,4 +250,4 @@ void FlattenExtendedUserdataPass(IR::Program& program) {
|
||||||
info.RefreshFlatBuf();
|
info.RefreshFlatBuf();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Shader::Optimization
|
} // namespace Shader::Optimization
|
||||||
|
|
Loading…
Add table
Reference in a new issue