summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-21 17:22:23 +0000
committerChris Lattner <sabre@nondot.org>2003-10-21 17:22:23 +0000
commit08d702b61db4d6140ffede9a93354d199b436e4b (patch)
treeddb3c62005d0bdc9923718a181d765057972604c /lib
parentff3d5d97026f957924e9a74ae14363a30da742a4 (diff)
downloadllvm-08d702b61db4d6140ffede9a93354d199b436e4b.tar.gz
llvm-08d702b61db4d6140ffede9a93354d199b436e4b.tar.bz2
llvm-08d702b61db4d6140ffede9a93354d199b436e4b.tar.xz
Hrm, unbreak stuph :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9334 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/SparcV9/SparcV9InstrInfo.cpp1
-rw-r--r--lib/Target/SparcV9/SparcV9PreSelection.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/SparcV9InstrInfo.cpp b/lib/Target/SparcV9/SparcV9InstrInfo.cpp
index 2d872314e9..952b7d2fcb 100644
--- a/lib/Target/SparcV9/SparcV9InstrInfo.cpp
+++ b/lib/Target/SparcV9/SparcV9InstrInfo.cpp
@@ -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(*)
diff --git a/lib/Target/SparcV9/SparcV9PreSelection.cpp b/lib/Target/SparcV9/SparcV9PreSelection.cpp
index d4f4398b4a..044caa7d31 100644
--- a/lib/Target/SparcV9/SparcV9PreSelection.cpp
+++ b/lib/Target/SparcV9/SparcV9PreSelection.cpp
@@ -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!