[PATCH] D48609: [AliasSet] Fix UnknownInstructions printing

Jakub Kuderski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 27 09:39:18 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL335751: [AliasSet] Fix UnknownInstructions printing (authored by kuhar, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D48609?vs=152966&id=153108#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D48609

Files:
  llvm/trunk/lib/Analysis/AliasSetTracker.cpp


Index: llvm/trunk/lib/Analysis/AliasSetTracker.cpp
===================================================================
--- llvm/trunk/lib/Analysis/AliasSetTracker.cpp
+++ llvm/trunk/lib/Analysis/AliasSetTracker.cpp
@@ -639,8 +639,12 @@
     OS << "\n    " << UnknownInsts.size() << " Unknown instructions: ";
     for (unsigned i = 0, e = UnknownInsts.size(); i != e; ++i) {
       if (i) OS << ", ";
-      if (auto *I = getUnknownInst(i))
-        I->printAsOperand(OS);
+      if (auto *I = getUnknownInst(i)) {
+        if (I->hasName())
+          I->printAsOperand(OS);
+        else
+          I->print(OS);
+      }
     }
   }
   OS << "\n";


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48609.153108.patch
Type: text/x-patch
Size: 651 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180627/fa985e9d/attachment.bin>


More information about the llvm-commits mailing list