File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,10 @@ fn recursive_constant_collapse(
50
50
const_block_inputs. clone ( ) ,
51
51
) ;
52
52
if has_constant {
53
- // Call the user-provided processor to potentially modify the input constants .
53
+ // Call the user-provided processor to potentially mark constants to be collapsed .
54
54
processor ( operator, input_constants) ;
55
55
56
- // Collapse any inputs that were marked for collapsing .
56
+ // Collapse any inputs that were marked.
57
57
for ( input, maybe_const) in node. inputs . iter_mut ( ) . zip ( input_constants) {
58
58
if let MaybeConstant :: ReferenceConstant {
59
59
value,
@@ -149,7 +149,7 @@ impl ConstantInputFinder {
149
149
// This refers to the input of the block, we need to check if it's a constant.
150
150
const_block_inputs. get ( & origin. output_idx ) . cloned ( )
151
151
}
152
- Operation :: WASMOp ( op) => op . try_into ( ) . ok ( ) ,
152
+ Operation :: WASMOp ( op) => WasmValue :: try_from ( op ) . ok ( ) ,
153
153
_ => None ,
154
154
}
155
155
. map_or ( MaybeConstant :: NonConstant , |value| {
You can’t perform that action at this time.
0 commit comments