aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuvaditya Sur <suvaditya.sur@gmail.com>2022-02-10 11:56:55 +0530
committerAustin Clements <austin@google.com>2022-02-10 22:20:18 +0000
commitc4b87b8d08af1243a8ef0add245f10f878879a57 (patch)
treeea9c1b7eeb1ecddbf32b6d4296ab36fad139938d
parent99b61be9f573ca46f4a4160e536abcb62180638a (diff)
downloadgo-c4b87b8d08af1243a8ef0add245f10f878879a57.tar.gz
go-c4b87b8d08af1243a8ef0add245f10f878879a57.zip
abi-internal: Fix typo in register assignment documentation
If register assignment fails, revert back the value to stack Change-Id: I6f65092461ad4d793206a679a5fef1b560b387f0 Reviewed-on: https://go-review.googlesource.com/c/go/+/384455 Reviewed-by: Ian Lance Taylor <iant@golang.org> Trust: Ian Lance Taylor <iant@golang.org> Reviewed-by: Austin Clements <austin@google.com>
-rw-r--r--src/cmd/compile/abi-internal.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/abi-internal.md b/src/cmd/compile/abi-internal.md
index 7fe4463665..53eaa84d54 100644
--- a/src/cmd/compile/abi-internal.md
+++ b/src/cmd/compile/abi-internal.md
@@ -155,7 +155,7 @@ as follows:
1. Remember I and FP.
1. If T has zero size, add T to the stack sequence S and return.
1. Try to register-assign V.
-1. If step 2 failed, reset I and FP to the values from step 1, add T
+1. If step 3 failed, reset I and FP to the values from step 1, add T
to the stack sequence S, and assign V to this field in S.
Register-assignment of a value V of underlying type T works as follows: