diff options
author | Morris Hafner <mmha@users.noreply.github.com> | 2017-03-29 19:20:25 +0200 |
---|---|---|
committer | Derek Schuff <dschuff@chromium.org> | 2017-03-29 10:20:25 -0700 |
commit | 114e4cec95f6b0d1aafd9d7a976b0fb2c0fddc36 (patch) | |
tree | 28f8b1957a2d81494780e30f11b21cdb8e6faede /src/emscripten-optimizer | |
parent | f1c992f946438ba8785c418e769ee024606fdde0 (diff) | |
download | binaryen-114e4cec95f6b0d1aafd9d7a976b0fb2c0fddc36.tar.gz binaryen-114e4cec95f6b0d1aafd9d7a976b0fb2c0fddc36.tar.bz2 binaryen-114e4cec95f6b0d1aafd9d7a976b0fb2c0fddc36.zip |
Fix build with gcc 7 (#957)
1. Add a missing <functional> include
2. Put the // fallthrough comment after the closing bracket so the compiler does not emit a implicit fallthrough warning.
Diffstat (limited to 'src/emscripten-optimizer')
-rw-r--r-- | src/emscripten-optimizer/optimizer-shared.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/emscripten-optimizer/optimizer-shared.cpp b/src/emscripten-optimizer/optimizer-shared.cpp index 7ba6d4a22..212aa112a 100644 --- a/src/emscripten-optimizer/optimizer-shared.cpp +++ b/src/emscripten-optimizer/optimizer-shared.cpp @@ -155,8 +155,7 @@ AsmSign detectSign(Ref node, IString minifiedFround) { switch (op.str[0]) { case '>': { if (op == TRSHIFT) return ASM_UNSIGNED; - // fallthrough - } + } // fallthrough case '|': case '&': case '^': case '<': case '=': case '!': return ASM_SIGNED; case '+': case '-': return ASM_FLEXIBLE; case '*': case '/': return ASM_NONSIGNED; // without a coercion, these are double |