summaryrefslogtreecommitdiff
path: root/src/passes/MergeBlocks.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/MergeBlocks.cpp')
-rw-r--r--src/passes/MergeBlocks.cpp4
1 files changed, 2 insertions, 2 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) {