Skip to content

Commit 1446d22

Browse files
committedJan 6, 2014
ignore new readonly attribute in llvm 3.4
1 parent 7ceb5ee commit 1446d22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/parseTools.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ function parseParamTokens(params) {
462462
// handle 'byval' and 'byval align X'. We store the alignment in 'byVal'
463463
byVal = QUANTUM_SIZE;
464464
segment.splice(1, 1);
465-
if (segment[1] && segment[1].text === 'nocapture') {
465+
if (segment[1] && (segment[1].text === 'nocapture' || segment[1].text === 'readonly')) {
466466
segment.splice(1, 1);
467467
}
468468
if (segment[1] && segment[1].text === 'align') {
@@ -471,7 +471,7 @@ function parseParamTokens(params) {
471471
segment.splice(1, 2);
472472
}
473473
}
474-
if (segment[1] && segment[1].text === 'nocapture') {
474+
if (segment[1] && (segment[1].text === 'nocapture' || segment[1].text === 'readonly')) {
475475
segment.splice(1, 1);
476476
}
477477
if (segment.length == 1) {

0 commit comments

Comments
 (0)