projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08d3cb3
)
Fixing lambda capture unused errors. (#16555)
author
Rex Morgan
<rex@rexflex.net>
Wed, 28 Feb 2018 02:53:11 +0000
(20:53 -0600)
committer
Jan 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
patch
|
blob
|
history
diff --git
a/src/jit/morph.cpp
b/src/jit/morph.cpp
index 6674a8cd1b9c22e5ab66c1dde536785993b78a30..a42859079ea3c94d25ad508ee3f09b358530b254 100644
(file)
--- a/
src/jit/morph.cpp
+++ b/
src/jit/morph.cpp
@@
-7384,6
+7384,9
@@
bool Compiler::fgCanFastTailCall(GenTreeCall* callee)
{
JITDUMP("[Fast tailcall decision]: %s\n", msg);
}
+#else
+ (void)this;
+ (void)callee;
#endif // DEBUG
};