Skip to content

Commit b2625a1

Browse files
committed
varargs: don't do pointer type check for internal temporary assignment
1 parent 1c06afd commit b2625a1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/compiler/ast-node-check.bas

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,10 @@ function astLoadPTRCHK _
177177
end if
178178

179179
'' assign to a temp, can't reuse the same vreg or registers could
180-
'' be spilled as IR can't handle inter-blocks
181-
t = astNewASSIGN( astNewVAR( n->sym ), l, AST_OPOPT_ISINI )
180+
'' be spilled as IR can't handle inter-blocks.
181+
'' And don't generate pointer warnings for this internal assignment; as
182+
'' in the case where datatypes differ by mangle modifier only.
183+
t = astNewASSIGN( astNewVAR( n->sym ), l, AST_OPOPT_ISINI or AST_OPOPT_DONTCHKPTR )
182184
astLoad( t )
183185
astDelNode( t )
184186

0 commit comments

Comments
 (0)