aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-22 13:41:56 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-03-22 13:41:56 -0700
commit58d5b3864326588863ee9ce30953563ebb8ce556 (patch)
tree71094bc4f084cc579c78a91c83cf458c5a8e3108 /src
parent716fcc6759e4230ccfd893b7b452c1dda2e9b9bc (diff)
correctly detect type of outputs of call to function pointers
Diffstat (limited to 'src')
-rw-r--r--src/analyzer.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/analyzer.js b/src/analyzer.js
index 92b7d8cf..b1991c3f 100644
--- a/src/analyzer.js
+++ b/src/analyzer.js
@@ -979,6 +979,9 @@ function analyzer(data, sidePass) {
if (variable.origin === 'alloca') {
variable.allocatedNum = item.allocatedNum;
}
+ if (variable.origin === 'call') {
+ variable.type = getReturnType(variable.type);
+ }
}
});