From 9d985413ce2b60a1a8cf001913ee8dac81c03aac Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Fri, 13 Jan 2023 01:36:56 +0000 Subject: fix lots more issues, add endian conversions to ObjGenMachO, add 64-bit kludge to Switch.c --- compiler_and_linker/unsorted/UseDefChains.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler_and_linker/unsorted/UseDefChains.c') diff --git a/compiler_and_linker/unsorted/UseDefChains.c b/compiler_and_linker/unsorted/UseDefChains.c index 7d87fa9..3ad955b 100644 --- a/compiler_and_linker/unsorted/UseDefChains.c +++ b/compiler_and_linker/unsorted/UseDefChains.c @@ -295,7 +295,7 @@ static void computeusedeflists(int flag) { def->v.arg = 0; def->v.u.object = object; list = oalloc(sizeof(RegUseOrDef)); - list->id = useID; + list->id = defID; tmp = findobjectusedef(object); list->next = tmp->defs; tmp->defs = list; @@ -427,7 +427,7 @@ static void computelocalusedefinfo(void) { bitvectorclearbit(list->id, defvec0); } } else if (def->v.arg == 0) { - oud = findobjectusedef(use->v.u.object); + oud = findobjectusedef(def->v.u.object); for (list = oud->uses; list; list = list->next) { if (may_alias(pcode, Uses[list->id].pcode)) { if (Uses[list->id].pcode->block != block) -- cgit v1.2.3