projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't use a random type for the select condition,
[oota-llvm.git]
/
lib
/
CodeGen
/
PHIElimination.cpp
diff --git
a/lib/CodeGen/PHIElimination.cpp
b/lib/CodeGen/PHIElimination.cpp
index 6dbc3dc299e4e4adc7835321186c4a3c5a990edc..bd389db31f3abcaf23b77759c17446e7c04b89cf 100644
(file)
--- a/
lib/CodeGen/PHIElimination.cpp
+++ b/
lib/CodeGen/PHIElimination.cpp
@@
-38,7
+38,7
@@
namespace {
public:
static char ID; // Pass identification, replacement for typeid
public:
static char ID; // Pass identification, replacement for typeid
- PNE() : MachineFunctionPass(
(intptr_t)
&ID) {}
+ PNE() : MachineFunctionPass(&ID) {}
virtual bool runOnMachineFunction(MachineFunction &Fn);
virtual bool runOnMachineFunction(MachineFunction &Fn);
@@
-354,7
+354,7
@@
void PNE::LowerAtomicPHINode(MachineBasicBlock &MBB,
}
// Really delete the PHI instruction now!
}
// Really delete the PHI instruction now!
-
delete MPhi
;
+
MF.DeleteMachineInstr(MPhi)
;
++NumAtomic;
}
++NumAtomic;
}