]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Fix -jp=a mode.
authorMike Pall <mike>
Tue, 10 Sep 2013 17:21:10 +0000 (19:21 +0200)
committerMike Pall <mike>
Tue, 10 Sep 2013 17:21:10 +0000 (19:21 +0200)
src/jit/p.lua

index 1fbf389aca87c6adb40fee693546524dcac07640..cd6a06167f8f25176df8817c3e76dd8351de292f 100644 (file)
@@ -196,9 +196,11 @@ local function prof_annotate(count1, samples)
       end
       local v = fl[n]
       if ann ~= 0 then
+       local v2 = fl[n+ann]
        if show then
-         if v then show = n elseif show+ann < n then show = false end
-       elseif fl[n+ann] then
+         if v2 then show = n+ann elseif v then show = n
+         elseif show+ann < n then show = false end
+       elseif v2 then
          show = n+ann
          out:write(format("@@ %d @@\n", n))
        end