qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 1f618737993bd95cc94cdec0142d95935823a665
parent 1f7acbd88fe739798cc1fb83870690e88b5d04e9
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Tue,  6 Oct 2015 13:25:28 -0400

split long line in idup

Diffstat:
Mlisc/util.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisc/util.c b/lisc/util.c @@ -70,7 +70,8 @@ void idup(Ins **pd, Ins *s, ulong n) { free(*pd); - memcpy(*pd = alloc(n * sizeof(Ins)), s, n * sizeof(Ins)); + *pd = alloc(n * sizeof(Ins)); + memcpy(*pd, s, n * sizeof(Ins)); } Ins *