summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ir/ReFinalize.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/ir/ReFinalize.cpp b/src/ir/ReFinalize.cpp
index e6ea0ecf1..bcbac85cc 100644
--- a/src/ir/ReFinalize.cpp
+++ b/src/ir/ReFinalize.cpp
@@ -24,21 +24,6 @@ static Type getValueType(Expression* value) {
return value ? value->type : Type::none;
}
-namespace {
-
-// Handles a branch fixup for visitBlock: if the branch goes to the
-// target name, give it a value which is unreachable.
-template<typename T>
-void handleBranchForVisitBlock(T* curr, Name name, Module* module) {
- if (BranchUtils::getUniqueTargets(curr).count(name)) {
- assert(!curr->value);
- Builder builder(*module);
- curr->value = builder.makeUnreachable();
- }
-}
-
-} // anonymous namespace
-
void ReFinalize::visitBlock(Block* curr) {
if (curr->list.size() == 0) {
curr->type = Type::none;