[tint][msl] Fix C++17 warning.

Bug: tint:2125
Change-Id: Id8189ffb5a77fbce409cb0b0ee14656b0da55f6c
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/171240
Kokoro: Ben Clayton <bclayton@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
Auto-Submit: Ben Clayton <bclayton@google.com>
diff --git a/test/tint/loops/while.wgsl.expected.msl b/test/tint/loops/while.wgsl.expected.msl
index f7428f9..d044fb0 100644
--- a/test/tint/loops/while.wgsl.expected.msl
+++ b/test/tint/loops/while.wgsl.expected.msl
@@ -2,12 +2,13 @@
 
 using namespace metal;
 
-#define TINT_ISOLATE_UB \
-  if (volatile bool tint_volatile_true = true; tint_volatile_true)
+#define TINT_ISOLATE_UB(VOLATILE_NAME) \
+  volatile bool VOLATILE_NAME = true; \
+  if (VOLATILE_NAME)
 
 int f() {
   int i = 0;
-  TINT_ISOLATE_UB while((i < 4)) {
+  TINT_ISOLATE_UB(tint_volatile_true) while((i < 4)) {
     i = as_type<int>((as_type<uint>(i) + as_type<uint>(1)));
   }
   return i;