diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-03-22 10:33:35 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-03-22 10:34:39 -0400 |
commit | 14628baf40757e4667651bbd621f6038632ecac7 (patch) | |
tree | 40f14ddbe78255efb893f0c036a9b5dfee4424e4 /lisc | |
parent | b8e3bc6aa0ad181b20446823d454776fe03fcf4b (diff) | |
download | roux-14628baf40757e4667651bbd621f6038632ecac7.tar.gz |
dumb switch mistake in isel (abi fuzzer)
Diffstat (limited to 'lisc')
-rw-r--r-- | lisc/isel.c | 10 |
1 files changed, 6 insertions, 4 deletions
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: |