Skip to content

Commit 0adef10

Browse files
authored
Update ExprConstant.cpp
1 parent 12e545f commit 0adef10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/ExprConstant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13061,7 +13061,7 @@ 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()))
13064+
if (Val == APSInt(APSInt::getSignedMinValue(Val.getBitWidth()), false))
1306513065
return false;
1306613066
if (Val.isNegative())
1306713067
Val.negate();

0 commit comments

Comments
 (0)