[PATCH] D76507: Bug in llvm/utils/print-before-all.py script, fails to compile chunk-0.ll

Kirill Naumov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 9 15:30:49 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG6f85ec960be4: [Tools] Fixed bug with llvm/utils/chunk-print-before-all.py script. (authored by knaumov).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D76507

Files:
  llvm/utils/chunk-print-before-all.py


Index: llvm/utils/chunk-print-before-all.py
===================================================================
--- llvm/utils/chunk-print-before-all.py
+++ llvm/utils/chunk-print-before-all.py
@@ -24,9 +24,10 @@
 is_dump = False
 cur = []
 for line in sys.stdin:
-    if line.startswith("*** IR Dump Before ") and len(cur) != 0:
-        print_chunk(cur);
-        cur = []
+    if line.startswith("*** IR Dump Before "):
+        if len(cur) != 0:
+            print_chunk(cur);
+            cur = []
         cur.append("; " + line)
     elif line.startswith("Stack dump:"):
         print_chunk(cur);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76507.256430.patch
Type: text/x-patch
Size: 605 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200409/58c3ac71/attachment.bin>


More information about the llvm-commits mailing list