projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typo.
[oota-llvm.git]
/
lib
/
CodeGen
/
MachineSSAUpdater.cpp
diff --git
a/lib/CodeGen/MachineSSAUpdater.cpp
b/lib/CodeGen/MachineSSAUpdater.cpp
index 8512baf9e0ad2e0d31f0a2c2c38a0b9af0b462b6..bb6aad7f948ef9679a545fb75028eceebc8f517e 100644
(file)
--- a/
lib/CodeGen/MachineSSAUpdater.cpp
+++ b/
lib/CodeGen/MachineSSAUpdater.cpp
@@
-315,8
+315,7
@@
public:
/// the specified predecessor block.
static void AddPHIOperand(MachineInstr *PHI, unsigned Val,
MachineBasicBlock *Pred) {
/// the specified predecessor block.
static void AddPHIOperand(MachineInstr *PHI, unsigned Val,
MachineBasicBlock *Pred) {
- PHI->addOperand(MachineOperand::CreateReg(Val, false));
- PHI->addOperand(MachineOperand::CreateMBB(Pred));
+ MachineInstrBuilder(*Pred->getParent(), PHI).addReg(Val).addMBB(Pred);
}
/// InstrIsPHI - Check if an instruction is a PHI.
}
/// InstrIsPHI - Check if an instruction is a PHI.