diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-01-06 11:40:40 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-01-06 11:40:40 -0800 |
commit | 1446d22751cd78af0a93f3872574f968ee936cb0 (patch) | |
tree | 606a54c19b6d5a1c487f913551c4bdce7e8245d8 | |
parent | 7ceb5eea73565ced4687c5b2c04859dbed9f2ac2 (diff) |
ignore new readonly attribute in llvm 3.4
-rw-r--r-- | src/parseTools.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 1e680fd0..655248b3 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -462,7 +462,7 @@ function parseParamTokens(params) { // handle 'byval' and 'byval align X'. We store the alignment in 'byVal' byVal = QUANTUM_SIZE; segment.splice(1, 1); - if (segment[1] && segment[1].text === 'nocapture') { + if (segment[1] && (segment[1].text === 'nocapture' || segment[1].text === 'readonly')) { segment.splice(1, 1); } if (segment[1] && segment[1].text === 'align') { @@ -471,7 +471,7 @@ function parseParamTokens(params) { segment.splice(1, 2); } } - if (segment[1] && segment[1].text === 'nocapture') { + if (segment[1] && (segment[1].text === 'nocapture' || segment[1].text === 'readonly')) { segment.splice(1, 1); } if (segment.length == 1) { |