Skip to content

Commit 8d4d178

Browse files
db7mewmew
authored andcommitted
fix return type of cmpxchg to be I1 instead of I8
Resolves llir#230. Signed-off-by: Diogo Behrens <diogo.behrens@huawei.com>
1 parent c306b9d commit 8d4d178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asm/inst_memory.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func (fgen *funcGen) newCmpXchgInst(ident ir.LocalIdent, old *ast.CmpXchgInst) (
4444
if err != nil {
4545
return nil, errors.WithStack(err)
4646
}
47-
typ := types.NewStruct(oldType, types.I8)
47+
typ := types.NewStruct(oldType, types.I1)
4848
return &ir.InstCmpXchg{LocalIdent: ident, Typ: typ}, nil
4949
}
5050

0 commit comments

Comments
 (0)