diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-11-10 16:29:11 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-11-10 16:29:11 -0800 |
commit | 3b3b4bd70a942cb8f047c1ae354cfc52dcdf642b (patch) | |
tree | 09cd5f20c0525d91df01a5bec65789ea7cc4dd16 /src/parseTools.js | |
parent | 4770d8323e2d7ce673a72db843ce1ce3afa03cd0 (diff) |
fix for GEP indexes being i64
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 4 |
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]; |