summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2015-07-15 01:31:26 +0000
committerPete Cooper <peter_cooper@apple.com>2015-07-15 01:31:26 +0000
commit6923461a163d8c094bef4ea9ce2b8b9a82ec2140 (patch)
tree2db6a335ec8423a973e563aba44ff3591450f329 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
parenta8127d8c928dfab4509c7208566afef293eec7b4 (diff)
downloadbcm5719-llvm-6923461a163d8c094bef4ea9ce2b8b9a82ec2140.tar.gz
bcm5719-llvm-6923461a163d8c094bef4ea9ce2b8b9a82ec2140.zip
Use enum instead of unsigned. NFC.
The unsigned opcode argument here was the result of BinaryOperator->getOpcode(). That returns a BinaryOps enum which is more accurate than passing around an unsigned. llvm-svn: 242265
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 9cf3d378f3e..7ece7f2b50e 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -1409,7 +1409,8 @@ void SelectionDAGBuilder::FindMergedConditions(const Value *Cond,
MachineBasicBlock *FBB,
MachineBasicBlock *CurBB,
MachineBasicBlock *SwitchBB,
- unsigned Opc, uint32_t TWeight,
+ Instruction::BinaryOps Opc,
+ uint32_t TWeight,
uint32_t FWeight) {
// If this node is not part of the or/and tree, emit it as a branch.
const Instruction *BOp = dyn_cast<Instruction>(Cond);
OpenPOWER on IntegriCloud