summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/PreSelection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/Sparc/PreSelection.cpp')
-rw-r--r--llvm/lib/Target/Sparc/PreSelection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Sparc/PreSelection.cpp b/llvm/lib/Target/Sparc/PreSelection.cpp
index 916938dabec..56c34edbb7f 100644
--- a/llvm/lib/Target/Sparc/PreSelection.cpp
+++ b/llvm/lib/Target/Sparc/PreSelection.cpp
@@ -214,8 +214,8 @@ static Instruction* DecomposeConstantExpr(ConstantExpr* CE,
"constantGEP", &insertBefore);
default: // must be a binary operator
- assert(CE->getOpcode() >= Instruction::FirstBinaryOp &&
- CE->getOpcode() < Instruction::NumBinaryOps &&
+ assert(CE->getOpcode() >= Instruction::BinaryOpsBegin &&
+ CE->getOpcode() < Instruction::BinaryOpsEnd &&
"Unrecognized opcode in ConstantExpr");
getArg1 = CE->getOperand(0);
if (ConstantExpr* CEarg = dyn_cast<ConstantExpr>(getArg1))
OpenPOWER on IntegriCloud