[Wasm] Minor: move buildUnreachable* helpers to more specific module
This commit is contained in:
@@ -206,16 +206,3 @@ abstract class WasmExpressionBuilder {
|
||||
buildInstr(WasmOp.PSEUDO_COMMENT_GROUP_END)
|
||||
}
|
||||
}
|
||||
|
||||
fun WasmExpressionBuilder.buildUnreachableForVerifier() {
|
||||
buildUnreachable(SourceLocation.NoLocation("This instruction should never be reached, but required for wasm verifier"))
|
||||
}
|
||||
|
||||
fun WasmExpressionBuilder.buildUnreachableAfterNothingType() {
|
||||
buildUnreachable(
|
||||
SourceLocation.NoLocation(
|
||||
"The unreachable instruction after an expression with Nothing type to make sure that " +
|
||||
"execution doesn't come here (or it fails fast if so). It also might be required for wasm verifier."
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user