Commit 4909ecc4 authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder

cmd/internal/obj/x86: change AsmBuf.Lock to bool

Follow-up to CL 38668.

Passes toolstash-check -all.

Change-Id: I78a62509c610b5184b5e7ef2c4aa146fc8038840
Reviewed-on: https://go-review.googlesource.com/38670
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarDave Cheney <dave@cheney.net>
parent cf2b32e7
......@@ -2577,7 +2577,7 @@ type AsmBuf struct {
vexflag int
rep int
repn int
lock int
lock bool
}
// Put1 appends one byte to the end of the buffer.
......@@ -4477,7 +4477,7 @@ func (asmbuf *AsmBuf) asmins(ctxt *obj.Link, cursym *obj.LSym, p *obj.Prog) {
}
if p.As == ALOCK {
asmbuf.lock++
asmbuf.lock = true
return
}
......@@ -4539,9 +4539,9 @@ func (asmbuf *AsmBuf) asmins(ctxt *obj.Link, cursym *obj.LSym, p *obj.Prog) {
asmbuf.repn = 0
}
if asmbuf.lock != 0 {
if asmbuf.lock {
asmbuf.Put1(0xf0)
asmbuf.lock = 0
asmbuf.lock = false
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment