Add missing newlines at EOF (for clang++).
[oota-llvm.git] / lib / VMCore / Constants.cpp
index 2507402f89929658d01a2e7c0e7cd34986cdc712..34fc9a8ea4f33477a3c2a69e271efbc12ce5bd69 100644 (file)
@@ -643,6 +643,11 @@ Constant* ConstantExpr::getNSWSub(Constant* C1, Constant* C2) {
                OverflowingBinaryOperator::NoSignedWrap);
 }
 
+Constant* ConstantExpr::getNSWMul(Constant* C1, Constant* C2) {
+  return getTy(C1->getType(), Instruction::Mul, C1, C2,
+               OverflowingBinaryOperator::NoSignedWrap);
+}
+
 Constant* ConstantExpr::getExactSDiv(Constant* C1, Constant* C2) {
   return getTy(C1->getType(), Instruction::SDiv, C1, C2,
                SDivOperator::IsExact);