aco: Fix unused variable warning by adding ASSERTED.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6436>
This commit is contained in:
@@ -48,7 +48,7 @@ static void validate(aco::Program *program)
|
||||
if (!(aco::debug_flags & aco::DEBUG_VALIDATE_IR))
|
||||
return;
|
||||
|
||||
bool is_valid = aco::validate_ir(program);
|
||||
ASSERTED bool is_valid = aco::validate_ir(program);
|
||||
assert(is_valid);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user