aboutsummaryrefslogtreecommitdiff
path: root/src/analyzer.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-09-01 10:50:43 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-09-01 10:50:43 -0700
commit7359e3ff751c241d19f638c59f127ab73c2c7e07 (patch)
treec01238e51e7b76a8b6af386305f352e5242451d9 /src/analyzer.js
parentfcc9d08d9e4a7513f021952263d05f97ef997f2f (diff)
fix bugs with parsing anonymous structure types
Diffstat (limited to 'src/analyzer.js')
-rw-r--r--src/analyzer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyzer.js b/src/analyzer.js
index 8f2ea146..3384bdea 100644
--- a/src/analyzer.js
+++ b/src/analyzer.js
@@ -349,7 +349,7 @@ function analyzer(data) {
// Decision time
- var pointedType = removePointing(variable.type);
+ var pointedType = pointingLevels(variable.type) > 0 ? removePointing(variable.type) : null;
if (variable.origin == 'getelementptr') {
// Use our implementation that emulates pointers etc.
// TODO Can we perhaps nativize some of these? However to do so, we need to discover their