[PATCH] D114584: [LNT] Fixed JS error caused by selecting the function with missing counters on the profile page
Pavel Kosov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 25 11:27:27 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rLNT2afddc424851: [LNT] Fixed JS error caused by selecting the function with missing counters on… (authored by kpdev42).
Repository:
rLNT LNT
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114584/new/
https://reviews.llvm.org/D114584
Files:
lnt/server/ui/static/lnt_profile.js
Index: lnt/server/ui/static/lnt_profile.js
===================================================================
--- lnt/server/ui/static/lnt_profile.js
+++ lnt/server/ui/static/lnt_profile.js
@@ -20,8 +20,8 @@
this.noFallThru = gjt[0];
this.weight = this.instructions
.reduce(function (a,b) {
- var weight_a = (a.weight === undefined)?a:a.weight;
- var weight_b = (b.weight === undefined)?b:b.weight;
+ var weight_a = (a.weight === undefined)?0:a.weight;
+ var weight_b = (b.weight === undefined)?0:b.weight;
return weight_a+weight_b;
}, 0);
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114584.389854.patch
Type: text/x-patch
Size: 630 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211125/7d067296/attachment.bin>
More information about the llvm-commits
mailing list