summaryrefslogtreecommitdiff
path: root/src/passes
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes')
-rw-r--r--src/passes/MergeBlocks.cpp4
-rw-r--r--src/passes/Print.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/passes/MergeBlocks.cpp b/src/passes/MergeBlocks.cpp
index 37ada0174..48101e295 100644
--- a/src/passes/MergeBlocks.cpp
+++ b/src/passes/MergeBlocks.cpp
@@ -224,7 +224,7 @@ struct MergeBlocks : public WalkerPass<PostWalker<MergeBlocks>> {
if (auto* block = child->dynCast<Block>()) {
if (!block->name.is() && block->list.size() >= 2) {
child = block->list.back();
- // we modified child )which is *&), which modifies curr, which might change its type
+ // we modified child (which is a reference to a pointer), which modifies curr, which might change its type
// (e.g. (drop (block i32 .. (unreachable)))
// the child was a block of i32, and is being replaced with an unreachable, so the
// parent will likely need to be unreachable too
@@ -277,7 +277,7 @@ struct MergeBlocks : public WalkerPass<PostWalker<MergeBlocks>> {
if (EffectAnalyzer(getPassOptions(), curr->ifTrue).hasSideEffects()) return;
outer = optimize(curr, curr->ifFalse, outer);
if (EffectAnalyzer(getPassOptions(), curr->ifFalse).hasSideEffects()) return;
- /* . */ optimize(curr, curr->condition, outer);
+ optimize(curr, curr->condition, outer);
}
void visitDrop(Drop* curr) {
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index a90cba7a7..6aebd612b 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -25,7 +25,7 @@
namespace wasm {
-static int forceFull() {
+static int isFullForced() {
if (getenv("BINARYEN_PRINT_FULL")) {
return std::stoi(getenv("BINARYEN_PRINT_FULL"));
}
@@ -48,7 +48,7 @@ struct PrintSExpression : public Visitor<PrintSExpression> {
PrintSExpression(std::ostream& o) : o(o) {
setMinify(false);
- if (!full) full = forceFull();
+ if (!full) full = isFullForced();
}
void visit(Expression* curr) {
@@ -807,7 +807,7 @@ std::ostream& WasmPrinter::printExpression(Expression* expression, std::ostream&
}
PrintSExpression print(o);
print.setMinify(minify);
- if (full || forceFull()) {
+ if (full || isFullForced()) {
print.setFull(true);
o << "[" << printWasmType(expression->type) << "] ";
}