From 5e25cb2e504de582a48a2fe99a26f68378a866ee Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 7 Oct 2011 15:41:24 -0700 Subject: [PATCH] fix bug with analyzing {..}* types --- src/analyzer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/analyzer.js b/src/analyzer.js index 9d542e2c1..372857330 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,