diff options
Diffstat (limited to 'lib/VMCore/Constants.cpp')
| -rw-r--r-- | lib/VMCore/Constants.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index 62117b22e6..d2359e5bcd 100644 --- a/lib/VMCore/Constants.cpp +++ b/lib/VMCore/Constants.cpp @@ -683,7 +683,12 @@ Constant* ConstantExpr::getNUWMul(Constant* C1, Constant* C2) { Constant* ConstantExpr::getExactSDiv(Constant* C1, Constant* C2) { return getTy(C1->getType(), Instruction::SDiv, C1, C2, - SDivOperator::IsExact); + PossiblyExactOperator::IsExact); +} + +Constant* ConstantExpr::getExactUDiv(Constant* C1, Constant* C2) { + return getTy(C1->getType(), Instruction::UDiv, C1, C2, + PossiblyExactOperator::IsExact); } // Utility function for determining if a ConstantExpr is a CastOp or not. This |
