Skip to content

Commit

Permalink
AT&T assembly, handle nnkDerefExpr
Browse files Browse the repository at this point in the history
  • Loading branch information
mratsim committed Aug 22, 2024
1 parent 112ab49 commit e3cd29f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion constantine/platforms/x86/macro_assembler_x86_att.nim
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const OutputReg = {asmOutputEarlyClobber, asmInputOutput, asmInputOutputEarlyClo

func toString*(nimSymbol: NimNode): string =
# We need to dereference the hidden pointer of var param
let isPtr = nimSymbol.kind in {nnkHiddenDeref, nnkPtrTy}
let isPtr = nimSymbol.kind in {nnkHiddenDeref, nnkPtrTy, nnkDerefExpr}
let isAddr = nimSymbol.kind in {nnkInfix, nnkCall} and (nimSymbol[0].eqIdent"addr" or nimSymbol[0].eqIdent"unsafeAddr")

let nimSymbol = if isPtr: nimSymbol[0]
Expand Down

0 comments on commit e3cd29f

Please sign in to comment.