diff options
| author | bors <bors@rust-lang.org> | 2024-03-13 00:03:50 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-03-13 00:03:50 +0000 |
| commit | e61dcc7a0ac33ef054d76453307124233edcf545 (patch) | |
| tree | 73ec720f90a2c1636b5f37fde12af6c0f35c6230 /compiler/rustc_hir_analysis/src/lib.rs | |
| parent | a165f1f65015b1bd4afd2ec50700aaacf2e0c485 (diff) | |
| parent | aa6cfb2669e51b3211017bde2faa6eddba22ecbe (diff) | |
| download | rust-e61dcc7a0ac33ef054d76453307124233edcf545.tar.gz rust-e61dcc7a0ac33ef054d76453307124233edcf545.zip | |
Auto merge of #122220 - saethlin:ppc-can-into-atomicptr, r=oli-obk
Only generate a ptrtoint in AtomicPtr codegen when absolutely necessary
This special case was added in this PR: https://github.com/rust-lang/rust/pull/77611 in response to this error message:
```
Intrinsic has incorrect argument type!
void ({}*)* `@llvm.ppc.cfence.p0sl_s`
in function rust_oom
LLVM ERROR: Broken function found, compilation aborted!
[RUSTC-TIMING] std test:false 20.161
error: could not compile `std`
```
But when I tried searching for more information about that intrinsic I found this: https://github.com/llvm/llvm-project/issues/55983 which is a report of someone hitting this same error and a fix was landed in LLVM, 2 years after the above Rust PR.
Diffstat (limited to 'compiler/rustc_hir_analysis/src/lib.rs')
0 files changed, 0 insertions, 0 deletions
