fix CoreCLR build errors with clang5.0. (#15477)
authorSergey Andreenko <seandree@microsoft.com>
Tue, 12 Dec 2017 03:05:15 +0000 (19:05 -0800)
committerGitHub <noreply@github.com>
Tue, 12 Dec 2017 03:05:15 +0000 (19:05 -0800)
commit9b22e1a767dee38f351001c5601f56d78766a43e
treea2ddf8ab67b1b596dfbe0e9a7d9091af6a0971bd
parent5497ed00472edb2d947853c95243671554746fd1
fix CoreCLR build errors with clang5.0. (#15477)

* spmi: delete the explicit call to the constructor.

MethodContext was already initialized through `new MethodContext();`

* add an artificial using of lambda param.

the define `#define PAL_EXCEPT(dispositionExpression)`
can declare expression that has zero or one param. If it has zero param, then `__param` in the lambda is unused, prevent clang complains by adding this change.
src/ToolBox/superpmi/superpmi-shared/methodcontext.cpp
src/pal/inc/pal.h