diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-12-05 17:56:14 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-07 14:23:23 -0800 |
commit | 67f423ed8e38e76b11bac0347d4713e349d6b1b9 (patch) | |
tree | 3c8a64b1355bc7d0c508f89b77a64e6c978ed295 /src/analyzer.js | |
parent | 5c7a624b2d60c021f4d27f40272fca0c16dfa535 (diff) |
legalize loads and stores of entire structures
Diffstat (limited to 'src/analyzer.js')
-rw-r--r-- | src/analyzer.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/analyzer.js b/src/analyzer.js index 6b5fa499..83f4317a 100644 --- a/src/analyzer.js +++ b/src/analyzer.js @@ -227,6 +227,9 @@ function analyzer(data, sidePass) { if (isIllegalType(item.valueType) || isIllegalType(item.type)) { isIllegal = true; } + if ((item.intertype == 'load' || item.intertype == 'store') && isStructType(item.valueType)) { + isIllegal = true; // storing an entire structure is illegal + } }); if (!isIllegal) { i++; |