Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer capability types when lowering unions to LLVM IR types #723

Merged
merged 2 commits into from
Feb 12, 2024

Commits on Feb 9, 2024

  1. [CHERI-RISC-V] Add a baseline test for incorrect union arguments

    Unions that contain an int128 and a capability are passed as a single
    i128 instead of as a capability or indirectly.
    arichardson committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    94742cf View commit details
    Browse the repository at this point in the history
  2. [CHERI] Prefer capability types when lowering unions to LLVM IR types

    This ensures that a union contain a __int128 and a capability will
    be lowered as a struct with one capability field instead of as an
    i128. This fixes tag stripping when passing such unions to functions
    by value instead of by reference.
    arichardson committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    e80c5f5 View commit details
    Browse the repository at this point in the history