@@ -2,7 +2,7 @@ use crate::ast::data::Constant;
22use crate :: ast:: functions:: {
33 CallArgument , CallInstruction , FunctionBlock , FunctionBody , FunctionDef , InsnDestInfo ,
44 JumpInstruction , ParamDef , PhiArg , PhiInstruction , RegularCallArgument , RegularInstruction ,
5- RegularParamDef , SimpleInstruction , SimpleInstructionArgs , Value , VariadicParamDef ,
5+ RegularParamDef , SimpleInstruction , Value , VariadicParamDef ,
66} ;
77use crate :: ast:: linkage:: Linkage ;
88use crate :: ast:: types:: BaseType ;
@@ -56,10 +56,7 @@ fn loop_func() -> FunctionDef {
5656 dest: TemporaryName :: unspanned( "x1" ) ,
5757 ty: BaseType :: Word ,
5858 } ) ,
59- args: SimpleInstructionArgs :: from( [
60- TemporaryName :: unspanned( "x" ) . into( ) ,
61- Value :: from( 1 ) ,
62- ] ) ,
59+ args: vec![ TemporaryName :: unspanned( "x" ) . into( ) , Value :: from( 1 ) ] ,
6360 name: Ident :: unspanned( "sub" ) ,
6461 } ) ] ,
6562 terminator: Some ( JumpInstruction :: JumpNonZero {
@@ -137,14 +134,14 @@ fn variadic_add3() -> FunctionDef {
137134 ty: BaseType :: Long ,
138135 dest: TemporaryName :: unspanned( "ap" ) ,
139136 } ) ,
140- args: SimpleInstructionArgs :: from ( [ 32 . into( ) ] ) ,
137+ args: vec! [ 32 . into( ) ] ,
141138 }
142139 . into( ) ,
143140 SimpleInstruction {
144141 span: Span :: MISSING ,
145142 dest_info: None ,
146143 name: Ident :: unspanned( "vastart" ) ,
147- args: SimpleInstructionArgs :: from ( [ TemporaryName :: unspanned( "ap" ) . into( ) ] ) ,
144+ args: vec! [ TemporaryName :: unspanned( "ap" ) . into( ) ] ,
148145 }
149146 . into( ) ,
150147 CallInstruction {
0 commit comments