[llvm-commits] [llvm] r62272 - /llvm/trunk/lib/VMCore/AsmWriter.cpp

Nuno Lopes nunoplopes at sapo.pt
Thu Jan 15 10:40:57 PST 2009


Author: nlopes
Date: Thu Jan 15 12:40:57 2009
New Revision: 62272

URL: http://llvm.org/viewvc/llvm-project?rev=62272&view=rev
Log:
add comment to explain my previous commit, as asked by Chris

Modified:
    llvm/trunk/lib/VMCore/AsmWriter.cpp

Modified: llvm/trunk/lib/VMCore/AsmWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/AsmWriter.cpp?rev=62272&r1=62271&r2=62272&view=diff

==============================================================================
--- llvm/trunk/lib/VMCore/AsmWriter.cpp (original)
+++ llvm/trunk/lib/VMCore/AsmWriter.cpp Thu Jan 15 12:40:57 2009
@@ -1671,6 +1671,8 @@
     } else {
       for (unsigned i = 1, E = I.getNumOperands(); i != E; ++i) {
         Operand = I.getOperand(i);
+        // note that Operand shouldn't be null, but the test helps make dump()
+        // more tolerant of malformed IR
         if (Operand && Operand->getType() != TheType) {
           PrintAllTypes = true;    // We have differing types!  Print them all!
           break;





More information about the llvm-commits mailing list