Skip to content

Commit 12e545f

Browse files
authored
Update ExprConstant.cpp
1 parent 05b6cd4 commit 12e545f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/AST/ExprConstant.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13061,6 +13061,8 @@ bool IntExprEvaluator::VisitBuiltinCallExpr(const CallExpr *E,
1306113061
APSInt Val;
1306213062
if (!EvaluateInteger(E->getArg(0), Val, Info))
1306313063
return false;
13064+
if (Val == APSInt::getSignedMinValue(Val.getBitWidth()))
13065+
return false;
1306413066
if (Val.isNegative())
1306513067
Val.negate();
1306613068
return Success(Val, E);

0 commit comments

Comments
 (0)