aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/parseTools.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index 39e76307..67d87a76 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -1203,6 +1203,10 @@ function finalizeLLVMFunctionCall(item, noIndexizeFunctions) {
function getGetElementPtrIndexes(item) {
var type = item.params[0].type;
+ if (I64_MODE == 1) {
+ // GEP indexes are marked as i64s, but they are just numbers to us
+ item.params.forEach(function(param) { param.type = 'i32' });
+ }
item.params = item.params.map(finalizeLLVMParameter);
var ident = item.params[0];