Hrm, unbreak stuph :(
authorChris Lattner <sabre@nondot.org>
Tue, 21 Oct 2003 17:22:23 +0000 (17:22 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 21 Oct 2003 17:22:23 +0000 (17:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9334 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9InstrInfo.cpp
lib/Target/SparcV9/SparcV9PreSelection.cpp

index 2d872314e9a3a6c018b1c1e52b7abb204f0e976a..952b7d2fcb4bbae7c8b98d17ed4eea2d46acc613 100644 (file)
@@ -19,6 +19,7 @@
 #include "llvm/CodeGen/MachineInstrBuilder.h"
 #include "llvm/Function.h"
 #include "llvm/Constants.h"
+#include "llvm/iTerminators.h"
 #include "llvm/DerivedTypes.h"
 
 static const uint32_t MAXLO   = (1 << 10) - 1; // set bits set by %lo(*)
index d4f4398b4a3d9e54302c9dc4805d67c88249e1cb..044caa7d317859cf0344cb3dff5a76fe86f3b65a 100644 (file)
@@ -222,7 +222,7 @@ void PreSelection::visitPHINode(PHINode &PN) {
   // so just handle PHIs and other instructions separately.
   // 
   for (unsigned i = 0, e = PN.getNumIncomingValues(); i != e; ++i)
-    visitOneOperand(I, PN.getIncomingValue(i),
+    visitOneOperand(PN, PN.getIncomingValue(i),
                     PN.getOperandNumForIncomingValue(i),
                     *PN.getIncomingBlock(i)->getTerminator());
   // do not call visitOperands!