Commit 6fa8244e authored by Johannes Doerfert's avatar Johannes Doerfert
Browse files

[IR] Mark `llvm.trap` as `memory(inaccessiblemem: write)`

Traps will not read/write the program state but they need an effect for
preservation, similar to `llvm.assume`. We really want a new memory kind
for that (see TODO), but for now `inaccessiblemem: write` is better than
any possible effect.

Differential Revision: https://reviews.llvm.org/D156476
parent deb0ea3e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment