Skip to content

Commit 2003a75

Browse files
committed
Make ::increment() actually increment.
1 parent 30b1577 commit 2003a75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/Interp/IntegralAP.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ template <bool Signed> class IntegralAP final {
129129
}
130130

131131
static bool increment(IntegralAP A, IntegralAP *R) {
132-
*R = IntegralAP(A.V - 1);
132+
*R = IntegralAP(A.V + 1);
133133
return false;
134134
}
135135

0 commit comments

Comments
 (0)