[llvm-commits] [llvm] r117671 - /llvm/trunk/lib/CodeGen/SplitKit.cpp

Benjamin Kramer benny.kra at googlemail.com
Fri Oct 29 10:40:05 PDT 2010


Author: d0k
Date: Fri Oct 29 12:40:05 2010
New Revision: 117671

URL: http://llvm.org/viewvc/llvm-project?rev=117671&view=rev
Log:
Silence Release build warnings.

Modified:
    llvm/trunk/lib/CodeGen/SplitKit.cpp

Modified: llvm/trunk/lib/CodeGen/SplitKit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SplitKit.cpp?rev=117671&r1=117670&r2=117671&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SplitKit.cpp (original)
+++ llvm/trunk/lib/CodeGen/SplitKit.cpp Fri Oct 29 12:40:05 2010
@@ -429,10 +429,9 @@
          liveOutCache_.insert(std::make_pair(Pred, LiveOutPair()));
        // Yes, we have been here before.
        if (!LOIP.second) {
-         if (VNInfo *VNI = LOIP.first->second.first) {
-           DEBUG(dbgs() << "    known valno #" << VNI->id
+         DEBUG(if (VNInfo *VNI = LOIP.first->second.first)
+                 dbgs() << "    known valno #" << VNI->id
                         << " at BB#" << Pred->getNumber() << '\n');
-         }
          continue;
        }
 
@@ -445,7 +444,7 @@
                       << " at BB#" << Pred->getNumber() << '\n');
          LiveOutPair &LOP = LOIP.first->second;
          LOP.first = VNI;
-         LOP.second = mdt_[lis_.getMBBFromIndex(VNI->def)];
+         LOP.second = mdt_[DefMBB];
          continue;
        }
        // No, we need a live-in value for Pred as well





More information about the llvm-commits mailing list