ref: 9c363497114e0f7a050c5952fdadb1236e39ed8e
parent: 010023adf639d11faa57093647590296fb8a6264
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Nov 17 09:10:55 EST 2021
cc1: Add size for scalar ops in emitdesig() When a scalar expression is emitted the size of that expression was not added to the current address.
--- a/src/cmd/cc/cc1/code.c
+++ b/src/cmd/cc/cc1/code.c
@@ -415,6 +415,7 @@
emit_expression:
emitexp(OEXPR, np);
+ *addr += tp->size;
}
static void