* 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.
void MethodContext::MethodInitHelper(unsigned char* buff2, unsigned int totalLen)
{
- MethodContext::MethodContext();
-
unsigned int buffIndex = 0;
unsigned int localsize = 0;
unsigned char canary = 0xff;
EXCEPTION_DISPOSITION disposition = EXCEPTION_CONTINUE_EXECUTION; \
auto exceptionFilter = [&disposition, &__param](PAL_SEHException& ex) \
{ \
+ (void)__param; \
disposition = dispositionExpression; \
_ASSERTE(disposition != EXCEPTION_CONTINUE_EXECUTION); \
return disposition; \