[PATCH] D120539: [LNT] Removed `0x` checking for offsets in profile assembly

Pavel Kosov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 2 15:26:23 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rLNT44cd77705dc0: [LNT] Removed `0x` checking for offsets in profile assembly (authored by kpdev42).

Repository:
  rLNT LNT

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120539/new/

https://reviews.llvm.org/D120539

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
@@ -139,7 +139,7 @@
       // and should be processed differently
       var isRelative = addressString.startsWith('#');
       var charOffset = (isRelative ? 1 : 0);
-      var base = (addressString.substring(charOffset).startsWith('0x') ? 16 : 10);
+      var base = (isRelative ? 10 : 16);
       if (isRelative)
           return addressCurrent + parseInt(addressString.substring(1), base);
       else


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120539.412561.patch
Type: text/x-patch
Size: 598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220302/0df839bb/attachment.bin>


More information about the llvm-commits mailing list