aboutsummaryrefslogtreecommitdiff
path: root/src/analyzer.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-08-26 22:13:56 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-08-26 22:13:56 -0700
commit315570d2fd052967f2a1e80930b63593d31672e3 (patch)
treec2970a3c5ca801b301d1fa2557f400c2ba03b808 /src/analyzer.js
parent71ce3922336051978d9fc1aa3be642b68e522d1c (diff)
handle illegal values in structural constants in calls; fixes #1318
Diffstat (limited to 'src/analyzer.js')
-rw-r--r--src/analyzer.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/analyzer.js b/src/analyzer.js
index 97ca880c..b20dedff 100644
--- a/src/analyzer.js
+++ b/src/analyzer.js
@@ -285,12 +285,10 @@ function analyzer(data, sidePass) {
// 'flatten' out the struct into scalars
var toAdd = param.params;
toAdd.forEach(function(param) {
- assert(param.intertype == 'value' && (param.type in Runtime.FLOAT_TYPES || getNumIntChunks(param.type) == 1), param.type);
param.byval = 0;
});
Array.prototype.splice.apply(params, [i, 1].concat(toAdd));
- i += toAdd.length;
- continue;
+ continue; // do not increment i; proceed to process the new params
}
i++;
}