Skip to content

Commit 8e99960

Browse files
committed
const int should be parsed as uint64_t before casting
1 parent c898600 commit 8e99960

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SIL/Parser/ParseSIL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1603,7 +1603,7 @@ bool SILParser::parseSILDebugInfoExpression(SILDebugInfoExpression &DIExpr) {
16031603
P.consumeToken();
16041604
IsNegative = true;
16051605
}
1606-
int64_t Val;
1606+
uint64_t Val;
16071607
if (parseInteger(Val, diag::sil_invalid_constant))
16081608
return true;
16091609
if (IsNegative)

0 commit comments

Comments
 (0)