From 480f26999b734271d5a730cc288644d5bef1b8d9 Mon Sep 17 00:00:00 2001 From: azidar Date: Sat, 16 Jan 2016 14:12:57 -0800 Subject: Fixed bug in lowering memories that had aggregate data types --- src/main/stanza/passes.stanza | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main') diff --git a/src/main/stanza/passes.stanza b/src/main/stanza/passes.stanza index e34a8682..45aaf755 100644 --- a/src/main/stanza/passes.stanza +++ b/src/main/stanza/passes.stanza @@ -2185,7 +2185,7 @@ defn lower-types (m:Module) -> Module : defn lower-types-e (e:Expression) -> Expression : match(e) : (e:WRef|UIntValue|SIntValue) : e - (e:WSubField) : + (e:WSubField|WSubIndex) : match(kind(e)) : (k:InstanceKind) : val names = expand-name(e) @@ -2198,7 +2198,6 @@ defn lower-types (m:Module) -> Module : lower-mem(e)[0] else : e (k) : WRef(lowered-name(e),type(e),kind(e),gender(e)) - (e:WSubIndex) : WRef(lowered-name(e),type(e),kind(e),gender(e)) (e:DoPrim) : map(lower-types-e,e) match(map(lower-types-e,s)) : (s:DefWire|DefPoison) : -- cgit v1.2.3