From 14628baf40757e4667651bbd621f6038632ecac7 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Tue, 22 Mar 2016 10:33:35 -0400 Subject: dumb switch mistake in isel (abi fuzzer) --- lisc/isel.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'lisc') diff --git a/lisc/isel.c b/lisc/isel.c index ab8e46c..ede7463 100644 --- 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: -- cgit 1.4.1