summaryrefslogtreecommitdiff
path: root/source/slang/lower-to-ir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/lower-to-ir.cpp')
-rw-r--r--source/slang/lower-to-ir.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/slang/lower-to-ir.cpp b/source/slang/lower-to-ir.cpp
index f642b316e..827504122 100644
--- a/source/slang/lower-to-ir.cpp
+++ b/source/slang/lower-to-ir.cpp
@@ -3242,8 +3242,7 @@ struct DeclLoweringVisitor : DeclVisitor<DeclLoweringVisitor, LoweredValInfo>
// this by putting an `unreachable` terminator here,
// and then emit a dataflow error if this block
// can't be eliminated.
- SLANG_UNEXPECTED("Needed a return here");
- UNREACHABLE(subContext->irBuilder->emitReturn());
+ subContext->irBuilder->emitUnreachable();
}
}
}