"test/vscode:/vscode.git/clone" did not exist on "9b5e0c18b468b603f35b4b4160e99fb9e88742df"
Commit 16e6cd5a authored by Ted Themistokleous's avatar Ted Themistokleous
Browse files

Remove variables for find_zero_div_const

Allows us to not throw warnings instead of using [[maybe_unused]] flag instead.
parent 48492136
......@@ -853,10 +853,12 @@ struct find_div_const
struct find_zero_div_const
{
auto matcher() const { return match::name("div")(match::arg(1)(match::has_value(0.0f))); }
auto matcher() const
{
return match::name("div")(match::arg(1)(match::skip_broadcasts(match::has_value(0.0f))));
}
[[noreturn]] void apply([[maybe_unused]] module& m,
[[maybe_unused]] const match::matcher_result& r) const
[[noreturn]] void apply(module&, const match::matcher_result&) const
{
MIGRAPHX_THROW("ERROR: Matched division by zero in pass");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment