aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2013-06-20 00:19:34 +0300
committerJukka Jylänki <jujjyl@gmail.com>2013-06-20 00:19:34 +0300
commit94b0f737f3dc2b2283f026e0a9a7c1f57adf7bb0 (patch)
treea53163d92527318a6dc9c6558912f1e8d6becd27 /src
parente4f8c8184058d8d621d8f3ac007a0d1a55980832 (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.js3
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;