Skip to content

Conversation

@delcypher
Copy link

llvm#134310 broke lots of codegen tests so this PR fixes them.

This PR also includes a handy script that can regenerate many of the codegen tests easily.

…codegen tests

This is to help fix the tests failures in rdar://148767987
…trap branches

```
commit 30f2e92
Author: Florian Mayer <[email protected]>
Date:   Fri Apr 4 10:58:08 2025 -0700

    [clang] [sanitizer] predict trap checks succeed (llvm#134310)

    Trap checks fail at most once (when the program crashes).
```

added profile metadata to trap branches that says its likely the trap
succeeds. This shows up in the IR which broke many of our codegen tests.

Many of the tests were automatically updated using
`clang/utils/bounds_safety_fixup_codegen_tests.sh` but several had to be
updated by hand.

rdar://148767987
@delcypher delcypher added the clang:bounds-safety Issue relating to the experimental -fbounds-safety feature in Clang label Apr 11, 2025
@delcypher delcypher self-assigned this Apr 11, 2025
@delcypher
Copy link
Author

Landing now to unbreak the CI.

@delcypher delcypher merged commit 32e7971 into next Apr 11, 2025
@delcypher delcypher deleted the dliew/rdar-148767987 branch April 11, 2025 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang:bounds-safety Issue relating to the experimental -fbounds-safety feature in Clang

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants