mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-11-14 22:57:13 +00:00
Update code base to use LLVM 21 (#434)
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com> Co-authored-by: LJ <81748770+elle-j@users.noreply.github.com> Co-authored-by: xermicus <cyrill@parity.io>
This commit is contained in:
31 files changed
+318
-195
No files matched your search
@@ -1103,13 +1103,7 @@ impl<'ctx> Context<'ctx> {
|
||||
|
||||
Ok(call_site_value
|
||||
.try_as_basic_value()
|
||||
.basic()
|
||||
.unwrap_or_else(|| {
|
||||
panic!(
|
||||
"revive runtime function {} should return a value",
|
||||
<PolkaVMSbrkFunction as RuntimeFunction>::NAME,
|
||||
)
|
||||
})
|
||||
.unwrap_basic()
|
||||
.into_pointer_value())
|
||||
}
|
||||
|
||||
@@ -1298,7 +1292,7 @@ impl<'ctx> Context<'ctx> {
|
||||
call_site_value.add_attribute(
|
||||
inkwell::attributes::AttributeLoc::Param(index as u32),
|
||||
self.llvm
|
||||
.create_enum_attribute(Attribute::NoCapture as u32, 0),
|
||||
.create_enum_attribute(Attribute::Captures as u32, 0), // captures(none)
|
||||
);
|
||||
call_site_value.add_attribute(
|
||||
inkwell::attributes::AttributeLoc::Param(index as u32),
|
||||
|
||||
Reference in new issue
Block a user