]> Cypherpunks repositories - gostls13.git/commitdiff
abi-internal: Fix typo in register assignment documentation
authorSuvaditya Sur <suvaditya.sur@gmail.com>
Thu, 10 Feb 2022 06:26:55 +0000 (11:56 +0530)
committerAustin Clements <austin@google.com>
Thu, 10 Feb 2022 22:20:18 +0000 (22:20 +0000)
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>
src/cmd/compile/abi-internal.md

index 7fe446366568124dc9d9c4559d28b6198cdb4d1e..53eaa84d545832b3e6f7a2910cc5de0b64b8ec55 100644 (file)
@@ -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: