diff options
author | Sergey Andreenko <seandree@microsoft.com> | 2017-12-11 19:05:15 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-11 19:05:15 -0800 |
commit | 9b22e1a767dee38f351001c5601f56d78766a43e (patch) | |
tree | a2ddf8ab67b1b596dfbe0e9a7d9091af6a0971bd /src/ToolBox/superpmi | |
parent | 5497ed00472edb2d947853c95243671554746fd1 (diff) | |
download | coreclr-9b22e1a767dee38f351001c5601f56d78766a43e.tar.gz coreclr-9b22e1a767dee38f351001c5601f56d78766a43e.tar.bz2 coreclr-9b22e1a767dee38f351001c5601f56d78766a43e.zip |
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.
Diffstat (limited to 'src/ToolBox/superpmi')
-rw-r--r-- | src/ToolBox/superpmi/superpmi-shared/methodcontext.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/ToolBox/superpmi/superpmi-shared/methodcontext.cpp b/src/ToolBox/superpmi/superpmi-shared/methodcontext.cpp index 581b2286d8..601f73833e 100644 --- a/src/ToolBox/superpmi/superpmi-shared/methodcontext.cpp +++ b/src/ToolBox/superpmi/superpmi-shared/methodcontext.cpp @@ -299,8 +299,6 @@ void MethodContext::MethodInitHelperFile(HANDLE hFile) void MethodContext::MethodInitHelper(unsigned char* buff2, unsigned int totalLen) { - MethodContext::MethodContext(); - unsigned int buffIndex = 0; unsigned int localsize = 0; unsigned char canary = 0xff; |