Skip to content

cgen: fix -fsanitize=undefined used with []int{}.sort() - #21331

Merged
spytheman merged 1 commit into
vlang:masterfrom
spytheman:cgen_fix_qsort_call_on_empty_array_with_fsanitize_undefined
Apr 21, 2024
Merged

spytheman merged 1 commit into
vlang:masterfrom
spytheman:cgen_fix_qsort_call_on_empty_array_with_fsanitize_undefined

Conversation

@spytheman

@spytheman spytheman commented Apr 21, 2024 •

Copy link
Copy Markdown
Contributor

This makes ./v -cc clang -cflags -fsanitize=undefined -o v2 cmd/v && ./v2 -cc clang -cflags -fsanitize=undefined vlib/v/compiler_errors_test.v pass.

@ttytm

ttytm commented Apr 22, 2024

Copy link
Copy Markdown
Member

nice 👍

@spytheman
spytheman deleted the cgen_fix_qsort_call_on_empty_array_with_fsanitize_undefined branch April 23, 2024 07:32
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