diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2013-06-20 00:19:34 +0300 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-06-20 00:19:34 +0300 |
commit | 94b0f737f3dc2b2283f026e0a9a7c1f57adf7bb0 (patch) | |
tree | a53163d92527318a6dc9c6558912f1e8d6becd27 /src | |
parent | e4f8c8184058d8d621d8f3ac007a0d1a55980832 (diff) |
In metadata, store paths parsed from .ll files using forward slashes on Windows. Fixes safe heap line detection on Windows (the code splits on '/' only as path delimiter), closes issue #1233.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules.js b/src/modules.js index b13ab3c5..d26acbd5 100644 --- a/src/modules.js +++ b/src/modules.js @@ -114,7 +114,8 @@ var Debugging = { m = metadataToParentMetadata[m]; assert(m, 'Confused as to parent metadata for llvm #' + l + ', metadata !' + m); } - this.llvmLineToSourceFile[l] = metadataToFilename[m]; + // Normalize Windows path slashes coming from LLVM metadata, so that forward slashes can be assumed as path delimiters. + this.llvmLineToSourceFile[l] = metadataToFilename[m].replace(/\\5C/g, '/'); } this.on = true; |