Skip to content

Commit

Permalink
fix post-merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
cpetig committed Aug 26, 2024
1 parent 51dc044 commit 4b5121b
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 77 deletions.
116 changes: 58 additions & 58 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/c/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct C {
needs_union_double_int64: bool,
prim_names: HashSet<String>,
world: String,
sizes: SizeAlign64,
sizes: SizeAlign,
renamed_interfaces: HashMap<WorldKey, String>,

world_id: Option<WorldId>,
Expand Down Expand Up @@ -2234,7 +2234,7 @@ impl<'a, 'b> FunctionBindgen<'a, 'b> {
impl Bindgen for FunctionBindgen<'_, '_> {
type Operand = String;

fn sizes(&self) -> &SizeAlign64 {
fn sizes(&self) -> &SizeAlign {
&self.gen.gen.sizes
}

Expand Down
9 changes: 3 additions & 6 deletions crates/core/src/abi.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pub use wit_parser::abi::{AbiVariant, WasmSignature, WasmType};
use wit_parser::{
align_to_arch, Alignment, ArchitectureSize, ElementInfo, Enum, Flags, FlagsRepr, Function,
Handle, Int, Record, Resolve, Result_, Results, SizeAlign64, Tuple, Type, TypeDefKind, TypeId,
Handle, Int, Record, Resolve, Result_, Results, SizeAlign, Tuple, Type, TypeDefKind, TypeId,
Variant,
};

Expand Down Expand Up @@ -709,7 +709,7 @@ pub trait Bindgen {
fn finish_block(&mut self, operand: &mut Vec<Self::Operand>);

/// Returns size information that was previously calculated for all types.
fn sizes(&self) -> &SizeAlign64;
fn sizes(&self) -> &SizeAlign;

/// Returns whether or not the specified element type is represented in a
/// "canonical" form for lists. This dictates whether the `ListCanonLower`
Expand Down Expand Up @@ -1145,10 +1145,7 @@ impl<'a, B: Bindgen> Generator<'a, B> {
.sizes()
.record(func.params.iter().map(|t| &t.1));
self.emit(&Instruction::GetArg { nth: 0 });
self.emit(&Instruction::GuestDeallocate {
size: info.size.size_wasm32(),
align: info.align.align_wasm32(),
});
self.emit(&Instruction::GuestDeallocate { size, align });
}
}

Expand Down
Loading

0 comments on commit 4b5121b

Please sign in to comment.