aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-09-15 20:09:18 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-09-15 20:09:18 -0700
commit4203afeb1a8cf66809aa79f400c0b2d05b51414c (patch)
tree3d6a1a2d5def396086fd65ca5522490d0969334b /src/parseTools.js
parentce07f2aa7735c267785115c23f28321f61c7b250 (diff)
parent734b1450b5dc644065bd8705a5f1a7b8074cbc61 (diff)
Merge branch 'master' into llvm-svn
Diffstat (limited to 'src/parseTools.js')
-rw-r--r--src/parseTools.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index a0bcf44f..a5d8da56 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -1050,7 +1050,7 @@ function getGetElementPtrIndexes(item) {
}
curr = 0;
}
- type = typeData ? typeData.fields[curr] : '';
+ type = typeData && typeData.fields[curr] ? typeData.fields[curr] : '';
});
var ret = indexes[0];
for (var i = 1; i < indexes.length; i++) {