mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
use precise getters
llvm-svn: 63403
This commit is contained in:
parent
690930270b
commit
8fd8e81e6e
@ -811,11 +811,14 @@ static void WriteInstruction(const Instruction &I, unsigned InstID,
|
||||
}
|
||||
break;
|
||||
case Instruction::Br:
|
||||
Code = bitc::FUNC_CODE_INST_BR;
|
||||
Vals.push_back(VE.getValueID(I.getOperand(0)));
|
||||
if (cast<BranchInst>(I).isConditional()) {
|
||||
Vals.push_back(VE.getValueID(I.getOperand(1)));
|
||||
Vals.push_back(VE.getValueID(I.getOperand(2)));
|
||||
{
|
||||
Code = bitc::FUNC_CODE_INST_BR;
|
||||
BranchInst &II(cast<BranchInst>(I));
|
||||
Vals.push_back(VE.getValueID(II.getSuccessor(0)));
|
||||
if (II.isConditional()) {
|
||||
Vals.push_back(VE.getValueID(II.getSuccessor(1)));
|
||||
Vals.push_back(VE.getValueID(II.getCondition()));
|
||||
}
|
||||
}
|
||||
break;
|
||||
case Instruction::Switch:
|
||||
|
Loading…
Reference in New Issue
Block a user