diff options
Diffstat (limited to 'src')
-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 1901b3fc..d2e3655f 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -56,7 +56,7 @@ function toNiceIdent(ident) { assert(ident); if (parseFloat(ident) == ident) return ident; if (ident == 'null') return '0'; // see parseNumerical - return ident.replace(/["\\ \.@%:<>,\*\[\]-]/g, '_'); + return ident.replace('%', '$').replace(/["\\ \.@:<>,\*\[\]-]/g, '_'); } function isStructPointerType(type) { @@ -255,7 +255,7 @@ function parseParamTokens(params) { intertype: 'value', type: segment[0].text, value: null, - ident: '_' + absIndex, + ident: toNiceIdent('%') + absIndex, }); } } else if (segment[1].text in PARSABLE_LLVM_FUNCTIONS) { |