[PATCH] D145826: [lld] Pass random.randint stop parameter as int.

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 10 18:58:04 PST 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG015c43178f9d: [lld] Pass random.randint stop parameter as int. (authored by jacek, committed by int3).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D145826

Files:
  lld/test/MachO/tools/generate-cfi-funcs.py


Index: lld/test/MachO/tools/generate-cfi-funcs.py
===================================================================
--- lld/test/MachO/tools/generate-cfi-funcs.py
+++ lld/test/MachO/tools/generate-cfi-funcs.py
@@ -23,7 +23,7 @@
   global lsda_odds
   have_lsda = (random.random() < lsda_odds)
   frame_size = random.randint(4, 64) * 16
-  frame_offset = -random.randint(0, (frame_size/16 - 4)) * 16
+  frame_offset = -random.randint(0, int(frame_size/16 - 4)) * 16
   global func_size_low, func_size_high
   func_size = random.randint(func_size_low, func_size_high) * 0x10
   func_size_high += 1


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145826.504322.patch
Type: text/x-patch
Size: 598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230311/46096bfb/attachment.bin>


More information about the llvm-commits mailing list