commit 14628baf40757e4667651bbd621f6038632ecac7 parent b8e3bc6aa0ad181b20446823d454776fe03fcf4b Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu> Date: Tue, 22 Mar 2016 10:33:35 -0400 dumb switch mistake in isel (abi fuzzer) Diffstat:
| M | lisc/isel.c | | | 10 | ++++++---- |
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/lisc/isel.c b/lisc/isel.c @@ -262,15 +262,17 @@ sel(Ins i, ANum *an, Fn *fn) case ONop: break; case OStored: - if (rtype(i.arg[0]) == RCon) - i.op = OStorel; case OStores: - if (rtype(i.arg[0]) == RCon) - i.op = OStorew; case OStorel: case OStorew: case OStoreh: case OStoreb: + if (rtype(i.arg[0]) == RCon) { + if (i.op == OStored) + i.op = OStorel; + if (i.op == OStores) + i.op = OStorew; + } seladdr(&i.arg[1], an, fn); goto Emit; case_OLoad: