diff options
author | Nathan Froyd <froydnj@gmail.com> | 2018-02-14 14:16:14 -0500 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2018-02-14 11:16:14 -0800 |
commit | 11a83d799d1b539f7c7a1eec987dc87119a098dd (patch) | |
tree | 2926e4b0f59e58c0f926893c56135966dafe9798 /src | |
parent | ee78bc9bccb02bb2b63fbb881fd2893a5fca0044 (diff) | |
download | binaryen-11a83d799d1b539f7c7a1eec987dc87119a098dd.tar.gz binaryen-11a83d799d1b539f7c7a1eec987dc87119a098dd.tar.bz2 binaryen-11a83d799d1b539f7c7a1eec987dc87119a098dd.zip |
fix some comment typos (#1425)
Diffstat (limited to 'src')
-rw-r--r-- | src/passes/OptimizeInstructions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/OptimizeInstructions.cpp b/src/passes/OptimizeInstructions.cpp index 8fd98cfda..62c29b184 100644 --- a/src/passes/OptimizeInstructions.cpp +++ b/src/passes/OptimizeInstructions.cpp @@ -553,7 +553,7 @@ struct OptimizeInstructions : public WalkerPass<PostWalker<OptimizeInstructions, if (mask == -1) { return binary->left; } - // small loads do not need to be masted, the load itself masks + // small loads do not need to be masked, the load itself masks if (auto* load = binary->left->dynCast<Load>()) { if ((load->bytes == 1 && mask == 0xff) || (load->bytes == 2 && mask == 0xffff)) { @@ -1073,7 +1073,7 @@ private: } // given an "almost" sign extend - either a proper one, or it - // has too many shifts left - we remove the sig extend. If there are + // has too many shifts left - we remove the sign extend. If there are // too many shifts, we split the shifts first, so this removes the // two sign extend shifts and adds one (smaller one) Expression* removeAlmostSignExt(Binary* outer) { |