aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-10-23 22:55:39 -0700
committeralon@honor <none@none>2010-10-23 22:55:39 -0700
commit6cc0726f3cac4473eb0ac8bfadaf429a14d472c4 (patch)
tree3442a7c148dc0a72449d662dd13d07d8ed836cb6 /src
parentadd9178a3fe696b683166377b78923cc90cb242b (diff)
small simplification for variable analyzer
Diffstat (limited to 'src')
-rw-r--r--src/analyzer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyzer.js b/src/analyzer.js
index c8529dd5..61dfbcca 100644
--- a/src/analyzer.js
+++ b/src/analyzer.js
@@ -210,7 +210,7 @@ function analyzer(data) {
// LLVM is SSA, so we always have a single assignment/write. We care about
// the reads/other uses.
walkJSON(func.lines, function(item) {
- if (item && item.intertype == 'assign' && ['alloca', 'load', 'call', 'bitcast', 'mathop', 'getelementptr', 'fastgetelementptrload'].indexOf(item.value.intertype) != -1) {
+ if (item && item.intertype == 'assign') {
func.variables[item.ident] = {
ident: item.ident,
type: item.value.type,