Support assignments of multidimensional slices, bug170

This commit is contained in:
Wilson Snyder
2010-01-19 10:52:11 -05:00
parent 48e88e4e74
commit 89e03a86b7
18 changed files with 728 additions and 13 deletions
+1
View File
@@ -240,6 +240,7 @@ private:
}
bool expandWide (AstNodeAssign* nodep, AstArraySel* rhsp) {
UINFO(8," Wordize ASSIGN(ARRAYSEL) "<<nodep<<endl);
if (rhsp->length()!=1) nodep->v3fatalSrc("ArraySel with length!=1 should have been removed in V3Slice");
for (int w=0; w<nodep->widthWords(); w++) {
addWordAssign(nodep, w, newAstWordSelClone (rhsp, w));
}