aboutsummaryrefslogtreecommitdiff
path: root/asm.peg
diff options
context:
space:
mode:
authorAndrew Chambers <[email protected]>2021-10-13 14:07:29 +1300
committerAndrew Chambers <[email protected]>2021-10-13 14:07:29 +1300
commit0e5a699f01e63ef44e40bf30033e17c5f4731ab8 (patch)
treed3d9aed902c49784b88327bdcf29577a27241c33 /asm.peg
parent7f51b475428aa2c0b505e1946870cb82a1155409 (diff)
Add parsev interning.
Diffstat (limited to 'asm.peg')
-rw-r--r--asm.peg4
1 files changed, 2 insertions, 2 deletions
diff --git a/asm.peg b/asm.peg
index f181cfe..8d16458 100644
--- a/asm.peg
+++ b/asm.peg
@@ -126,9 +126,9 @@ pop =
call = "call" 'q'? ws (
'*' t:m
- { $$.call = (Call){ .kind = ASM_CALL, .target.indirect=dupv(&t), .indirect=1 } ; }
+ { $$.call = (Call){ .kind = ASM_CALL, .target.indirect=internparsev(&t), .indirect=1 } ; }
| '*' t:r64
- { $$.call = (Call){ .kind = ASM_CALL, .target.indirect=dupv(&t), .indirect=1 } ; }
+ { $$.call = (Call){ .kind = ASM_CALL, .target.indirect=internparsev(&t), .indirect=1 } ; }
| t:value
{ $$.call = (Call){ .kind = ASM_CALL, .target.direct=t.value, .indirect=0 } ; }
)