Fixing lambda capture unused errors. (#16555)
authorRex Morgan <rex@rexflex.net>
Wed, 28 Feb 2018 02:53:11 +0000 (20:53 -0600)
committerJan Kotas <jkotas@microsoft.com>
Wed, 28 Feb 2018 02:53:11 +0000 (18:53 -0800)
These errors were happening when compiling with clang 5.0.1.

Since the whole method is defined inside a #if DEBUG, it was
erroring when compiling in release mode because the lambda
variables were not being used.

src/jit/morph.cpp

index 6674a8cd1b9c22e5ab66c1dde536785993b78a30..a42859079ea3c94d25ad508ee3f09b358530b254 100644 (file)
@@ -7384,6 +7384,9 @@ bool Compiler::fgCanFastTailCall(GenTreeCall* callee)
         {
             JITDUMP("[Fast tailcall decision]: %s\n", msg);
         }
+#else
+        (void)this;
+        (void)callee;
 #endif // DEBUG
     };