Skip to content

Commit

Permalink
fix return type of cmpxchg to be I1 instead of I8
Browse files Browse the repository at this point in the history
Resolves #230.

Signed-off-by: Diogo Behrens <[email protected]>
  • Loading branch information
db7 authored and mewmew committed Aug 25, 2023
1 parent c306b9d commit 8d4d178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asm/inst_memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (fgen *funcGen) newCmpXchgInst(ident ir.LocalIdent, old *ast.CmpXchgInst) (
if err != nil {
return nil, errors.WithStack(err)
}
typ := types.NewStruct(oldType, types.I8)
typ := types.NewStruct(oldType, types.I1)
return &ir.InstCmpXchg{LocalIdent: ident, Typ: typ}, nil
}

Expand Down

0 comments on commit 8d4d178

Please sign in to comment.