diff options
| author | bors <bors@rust-lang.org> | 2025-05-12 01:26:55 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-05-12 01:26:55 +0000 |
| commit | 718ddf660e6a1802c39b4962cf7eaa4db57025ef (patch) | |
| tree | c6f0cc4d75ec45712b29ae57cccf4be93d999f3c /compiler/rustc_codegen_llvm/src/common.rs | |
| parent | 6812af9821c86b344c6d9e3584681f8589da6801 (diff) | |
| parent | dbdbde2a72ae26b9aaad8eae5d81635b36031f7b (diff) | |
| download | rust-718ddf660e6a1802c39b4962cf7eaa4db57025ef.tar.gz rust-718ddf660e6a1802c39b4962cf7eaa4db57025ef.zip | |
Auto merge of #140923 - Zalathar:operand-bundle, r=lcnr
cg_llvm: Rename `OperandBundleOwned` to `OperandBundleBox` As with `DIBuilderBox`, the "Box" suffix does a better job of communicating that this is an owning pointer to some borrowable resource. This also renames the `raw` method to `as_ref`, which is what it would have been named originally if the `Deref` problem (#137603) had been known at the time. No functional change.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/common.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/common.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_llvm/src/common.rs b/compiler/rustc_codegen_llvm/src/common.rs index a6f277e4455..3cfa96393e9 100644 --- a/compiler/rustc_codegen_llvm/src/common.rs +++ b/compiler/rustc_codegen_llvm/src/common.rs @@ -67,12 +67,12 @@ use crate::value::Value; /// the `OperandBundleDef` value created for MSVC landing pads. pub(crate) struct Funclet<'ll> { cleanuppad: &'ll Value, - operand: llvm::OperandBundleOwned<'ll>, + operand: llvm::OperandBundleBox<'ll>, } impl<'ll> Funclet<'ll> { pub(crate) fn new(cleanuppad: &'ll Value) -> Self { - Funclet { cleanuppad, operand: llvm::OperandBundleOwned::new("funclet", &[cleanuppad]) } + Funclet { cleanuppad, operand: llvm::OperandBundleBox::new("funclet", &[cleanuppad]) } } pub(crate) fn cleanuppad(&self) -> &'ll Value { @@ -80,7 +80,7 @@ impl<'ll> Funclet<'ll> { } pub(crate) fn bundle(&self) -> &llvm::OperandBundle<'ll> { - self.operand.raw() + self.operand.as_ref() } } |
