@@ -573,7 +573,7 @@ static SILValue getSub(SILLocation Loc, SILValue Val, unsigned SubVal,
573
573
SmallVector<SILValue, 4 > Args (1 , Val);
574
574
Args.push_back (B.createIntegerLiteral (Loc, Val->getType (), SubVal));
575
575
Args.push_back (B.createIntegerLiteral (
576
- Loc, SILType::getBuiltinIntegerType (1 , B.getASTContext ()), - 1 ));
576
+ Loc, SILType::getBuiltinIntegerType (1 , B.getASTContext ()), 1 ));
577
577
578
578
auto *AI = B.createBuiltinBinaryFunctionWithOverflow (
579
579
Loc, " ssub_with_overflow" , Args);
@@ -585,7 +585,7 @@ static SILValue getAdd(SILLocation Loc, SILValue Val, unsigned AddVal,
585
585
SmallVector<SILValue, 4 > Args (1 , Val);
586
586
Args.push_back (B.createIntegerLiteral (Loc, Val->getType (), AddVal));
587
587
Args.push_back (B.createIntegerLiteral (
588
- Loc, SILType::getBuiltinIntegerType (1 , B.getASTContext ()), - 1 ));
588
+ Loc, SILType::getBuiltinIntegerType (1 , B.getASTContext ()), 1 ));
589
589
590
590
auto *AI = B.createBuiltinBinaryFunctionWithOverflow (
591
591
Loc, " sadd_with_overflow" , Args);
0 commit comments