fix ASSERT_MSG arguments (#2337)

This commit is contained in:
makigumo 2025-02-04 07:51:07 +01:00 committed by GitHub
parent e0d85a7e58
commit f8f732e78c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -219,7 +219,7 @@ void FlattenExtendedUserdataPass(IR::Program& program) {
};
auto base0 = IR::BreadthFirstSearch(ptr_composite->Arg(0), 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();
ptr_lo = pass_info.DeduplicateInstruction(ptr_lo);
@ -250,4 +250,4 @@ void FlattenExtendedUserdataPass(IR::Program& program) {
info.RefreshFlatBuf();
}
} // namespace Shader::Optimization
} // namespace Shader::Optimization