summaryrefslogtreecommitdiff
path: root/src/Compile.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Compile.hs')
-rw-r--r--src/Compile.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Compile.hs b/src/Compile.hs
index 2652ed4..6e46f74 100644
--- a/src/Compile.hs
+++ b/src/Compile.hs
@@ -831,6 +831,7 @@ compile' env = \case
resname <- genName' "ixres"
emit $ SVarDecl True (repSTy t) resname (CEIndex (CELit (arrname ++ ".buf->xs")) (toLinearIdx n arrname idxname))
+ incrementVarAlways "idxelt" Increment t resname
incrementVarAlways "idx" Decrement (STArr n t) arrname
return (CELit resname)