compiler/spirv: There is not need unqualify const in function vtn_string_literal

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26775>
This commit is contained in:
Yonggang Luo
2023-12-16 16:42:04 +08:00
committed by Marge Bot
parent fd11818828
commit 88c4de7e7b

View File

@@ -542,7 +542,7 @@ vtn_string_literal(struct vtn_builder *b, const uint32_t *words,
}
#endif
const char *str = (char *)words;
const char *str = (const char *)words;
const char *end = memchr(str, 0, word_count * 4);
vtn_fail_if(end == NULL, "String is not null-terminated");