Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-Leo-Smith committed Jan 10, 2025
1 parent 909edfc commit aa4e9d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xir/passes/dce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ void propagate_unreachable_marks_in_function(Function *function, DCEInfo &info)
LUISA_DEBUG_ASSERT(cond != nullptr, "Branch condition must not be null.");
if (cond->derived_value_tag() != DerivedValueTag::CONSTANT) { return luisa::nullopt; }
auto static_cond = static_cast<Constant *>(cond);
LUISA_DEBUG_ASSERT(const_cond->type()->is_bool(), "Branch condition must be a boolean constant.");
LUISA_DEBUG_ASSERT(static_cond->type()->is_bool(), "Branch condition must be a boolean constant.");
return static_cond->as<bool>();
}

Expand Down

0 comments on commit aa4e9d9

Please sign in to comment.