summaryrefslogtreecommitdiff
path: root/src/ir/block-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/block-utils.h')
-rw-r--r--src/ir/block-utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir/block-utils.h b/src/ir/block-utils.h
index 1ed9ee413..ca8b7179b 100644
--- a/src/ir/block-utils.h
+++ b/src/ir/block-utils.h
@@ -34,7 +34,7 @@ inline Expression*
simplifyToContents(Block* block, T* parent, bool allowTypeChange = false) {
auto& list = block->list;
if (list.size() == 1 &&
- !BranchUtils::BranchSeeker::hasNamed(list[0], block->name)) {
+ !BranchUtils::BranchSeeker::has(list[0], block->name)) {
// just one element. try to replace the block
auto* singleton = list[0];
auto sideEffects =