writer/hlsl: Do not emit (void) call_expr;

Just emit `call_expr;` instead.

Fixed: tint:1259
Change-Id: I84a2976d82f891e9263f3e11e5774fcb01ea09bd
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/67381
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
Ben Clayton
2021-10-25 11:00:44 +00:00
committed by Tint LUCI CQ
parent 7b776f18b0
commit 33c13c6e28
5 changed files with 30 additions and 32 deletions

View File

@@ -4,6 +4,6 @@ int f(int a, int b, int c) {
[numthreads(1, 1, 1)]
void main() {
(void) f(1, 2, 3);
f(1, 2, 3);
return;
}