diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-10-07 15:41:24 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-10-07 15:41:24 -0700 |
commit | 5e25cb2e504de582a48a2fe99a26f68378a866ee (patch) | |
tree | 02c717ed85ee8ca5ae678cbba3ecd9743ab3b85f /src | |
parent | c7e460d60b16583b4d920c7cf2e9e73c0ae9ba05 (diff) |
fix bug with analyzing {..}* types
Diffstat (limited to 'src')
-rw-r--r-- | src/analyzer.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/analyzer.js b/src/analyzer.js index 9d542e2c..37285733 100644 --- a/src/analyzer.js +++ b/src/analyzer.js @@ -95,6 +95,7 @@ function analyzer(data) { if (Types.types[type]) return; if (['internal', 'hidden', 'inbounds', 'void'].indexOf(type) != -1) return; if (Runtime.isNumberType(type)) return; + dprint('types', 'Adding type: ' + type); // 'blocks': [14 x %struct.X] etc. If this is a pointer, we need // to look at the underlying type - it was not defined explicitly @@ -130,6 +131,7 @@ function analyzer(data) { // anonymous structure definition, for example |{ i32, i8*, void ()*, i32 }| if (type[0] == '{' || type[0] == '<') { + type = nonPointing; var packed = type[0] == '<'; Types.types[type] = { name_: type, |