mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-19 01:48:34 +00:00
use precise getters
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63402 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dd9db66882
commit
c1bb13f1b8
@ -38,8 +38,8 @@ bool llvm::ConstantFoldTerminator(BasicBlock *BB) {
|
||||
// Branch - See if we are conditional jumping on constant
|
||||
if (BranchInst *BI = dyn_cast<BranchInst>(T)) {
|
||||
if (BI->isUnconditional()) return false; // Can't optimize uncond branch
|
||||
BasicBlock *Dest1 = cast<BasicBlock>(BI->getOperand(0));
|
||||
BasicBlock *Dest2 = cast<BasicBlock>(BI->getOperand(1));
|
||||
BasicBlock *Dest1 = BI->getSuccessor(0);
|
||||
BasicBlock *Dest2 = BI->getSuccessor(1);
|
||||
|
||||
if (ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition())) {
|
||||
// Are we branching on constant?
|
||||
|
Loading…
Reference in New Issue
Block a user