Skip to content

Fix MSVC shift warnings in IR vector bounds checks - #23993

Closed
realFlowControl wants to merge 1 commit into
php:masterfrom
realFlowControl:florian/fix-windows-ir-shift-warning
Closed

realFlowControl wants to merge 1 commit into
php:masterfrom
realFlowControl:florian/fix-windows-ir-shift-warning

Conversation

@realFlowControl

Copy link
Copy Markdown
Contributor

This should fix the failing Windows CI by making the conversion of IR_VECTOR_LENGTH to int64_t explicit.

Likely came with #23861

Make the conversion of IR_VECTOR_LENGTH to int64_t explicit in the REPLACE and EXTRACT folding rules. The vector length fits in 32 bits, but MSVC warns when its shifted value is implicitly widened for comparison (C4334), breaking builds with /WX.

Keep the fix as a bundled-source patch so the IR import remains reproducible.
@realFlowControl
realFlowControl deleted the florian/fix-windows-ir-shift-warning branch September 29, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant