rust/compiler/rustc_llvm
Matthias Krüger a38911a876
Rollup merge of #123591 - Zalathar:useless-cast, r=cuviper
Remove unnecessary cast from `LLVMRustGetInstrProfIncrementIntrinsic`

(Noticed while reviewing #123409.)

This particular cast appears to have been copied over from clang, but there are plenty of other call sites in clang that don't bother with a cast here, and it works fine without one.

For context, `llvm::Intrinsic::ID` is a typedef for `unsigned`, and `llvm::Intrinsic::instrprof_increment` is a member of `enum IndependentIntrinsics : unsigned`.

---

The formatting change in `unwrap(M)` is the result of manually running `clang-format` on this file, and then reverting all changes other than the ones affecting these lines.
2024-04-08 22:06:23 +02:00
..
llvm-wrapper Rollup merge of #123591 - Zalathar:useless-cast, r=cuviper 2024-04-08 22:06:23 +02:00
src Invert diagnostic lints. 2024-02-06 13:12:33 +11:00
build.rs Rollup merge of #123294 - Nilstrieb:reuqire-llvm-config, r=clubby789 2024-04-06 08:56:33 +02:00
Cargo.toml Add arm64ec-pc-windows-msvc target 2024-03-06 17:49:37 -08:00