Skip to content

Conversation

@eeckstein
Copy link
Contributor

Integer literals with BuiltinIntegerLiteralType need a special handling.

rdar://162322558

… with a StaticBigInt payload

Integer literals with `BuiltinIntegerLiteralType` need a special handling.

rdar://162322558
@eeckstein eeckstein requested a review from rjmccall as a code owner November 3, 2025 15:20
@eeckstein
Copy link
Contributor Author

@swift-ci smoke test

1 similar comment
@eeckstein
Copy link
Contributor Author

@swift-ci smoke test

case s(StaticString)
case i(StaticBigInt)

// CHECK-LABEL: sil_global hidden @$s4test19StaticIntStringEnumO1xACvpZ : $StaticIntStringEnum = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you pass -check-prefix to FileCheck, I believe it suppresses the default CHECK prefix.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. This check line is for the first compiler run (see line 1)

@eeckstein eeckstein enabled auto-merge November 3, 2025 20:14
@eeckstein eeckstein merged commit 73fd67b into swiftlang:main Nov 3, 2025
3 checks passed
@eeckstein eeckstein deleted the fix-static-enums branch November 4, 2025 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants