]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Fix -jp=a mode for builtins.
authorMike Pall <mike>
Sun, 2 Oct 2016 12:33:31 +0000 (14:33 +0200)
committerMike Pall <mike>
Sun, 2 Oct 2016 12:33:31 +0000 (14:33 +0200)
src/jit/p.lua

index 09b3b9fe1056583f4d59dbd4b11add510a1a5d81..c9b6f3071ed78fb8cd0839d2f24e4a8b215cac38 100644 (file)
@@ -156,6 +156,7 @@ local function prof_annotate(count1, samples)
     ms = math.max(ms, v)
     if pct >= prof_min then
       local file, line = k:match("^(.*):(%d+)$")
+      if not file then file = k; line = 0 end
       local fl = files[file]
       if not fl then fl = {}; files[file] = fl; files[#files+1] = file end
       line = tonumber(line)