MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / set_block

Method set_block

cranelift/codegen/src/ir/instructions.rs:93–95  ·  view source on GitHub ↗

Replace the block for this BlockCall.

(&mut self, block: Block, pool: &mut ValueListPool)

Source from the content-addressed store, hash-verified

91
92 /// Replace the block for this BlockCall.
93 pub fn set_block(&mut self, block: Block, pool: &mut ValueListPool) {
94 *self.values.get_mut(0, pool).unwrap() = Self::block_to_value(block);
95 }
96
97 /// Append an argument to the block args.
98 pub fn append_argument(&mut self, arg: impl Into<BlockArg>, pool: &mut ValueListPool) {

Callers 2

Calls 2

unwrapMethod · 0.45
get_mutMethod · 0.45

Tested by

no test coverage detected