diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-06-15 17:56:01 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-06-15 17:56:01 +0000 |
| commit | 81ea0b29ea3a8d426e8cf8362fefaa61906c1b91 (patch) | |
| tree | 71a2b20667ca38e5029ca03a98f22c949993e9ee /src/allocator.rs | |
| parent | 2445d740f741c9d0954822ef0f0cd0c2a1c6acd2 (diff) | |
| download | rust-81ea0b29ea3a8d426e8cf8362fefaa61906c1b91.tar.gz rust-81ea0b29ea3a8d426e8cf8362fefaa61906c1b91.zip | |
Merge commit '8830dccd1d4c74f1f69b0d3bd982a3f1fcde5807' into sync_cg_clif-2023-06-15
Diffstat (limited to 'src/allocator.rs')
| -rw-r--r-- | src/allocator.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/allocator.rs b/src/allocator.rs index d4b1ae2b613..e92280b26b0 100644 --- a/src/allocator.rs +++ b/src/allocator.rs @@ -89,16 +89,16 @@ fn codegen_inner( ); let data_id = module.declare_data(OomStrategy::SYMBOL, Linkage::Export, false, false).unwrap(); - let mut data_ctx = DataContext::new(); - data_ctx.set_align(1); + let mut data = DataDescription::new(); + data.set_align(1); let val = oom_strategy.should_panic(); - data_ctx.define(Box::new([val])); - module.define_data(data_id, &data_ctx).unwrap(); + data.define(Box::new([val])); + module.define_data(data_id, &data).unwrap(); let data_id = module.declare_data(NO_ALLOC_SHIM_IS_UNSTABLE, Linkage::Export, false, false).unwrap(); - let mut data_ctx = DataContext::new(); - data_ctx.set_align(1); - data_ctx.define(Box::new([0])); - module.define_data(data_id, &data_ctx).unwrap(); + let mut data = DataDescription::new(); + data.set_align(1); + data.define(Box::new([0])); + module.define_data(data_id, &data).unwrap(); } |
