mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-10-25 21:25:08 +00:00
update Rust dependencies (#456)
Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
1 parent
7cc001ddf4
commit
50e4d47bc6
4 files changed
+71
-44
No files matched your search
@@ -838,8 +838,7 @@ impl<'ctx> Context<'ctx> {
|
||||
.builder()
|
||||
.build_call(intrinsic, &[value.into()], "call_byte_swap")?
|
||||
.try_as_basic_value()
|
||||
.left()
|
||||
.unwrap())
|
||||
.unwrap_basic())
|
||||
}
|
||||
|
||||
/// Builds a GEP instruction.
|
||||
@@ -912,7 +911,7 @@ impl<'ctx> Context<'ctx> {
|
||||
)
|
||||
.unwrap()
|
||||
.try_as_basic_value()
|
||||
.left()
|
||||
.basic()
|
||||
}
|
||||
|
||||
/// Builds a call to the runtime API `import`, where `import` is a "getter" API.
|
||||
@@ -950,7 +949,7 @@ impl<'ctx> Context<'ctx> {
|
||||
)
|
||||
.unwrap();
|
||||
self.modify_call_site_value(arguments, call_site_value, function);
|
||||
call_site_value.try_as_basic_value().left()
|
||||
call_site_value.try_as_basic_value().basic()
|
||||
}
|
||||
|
||||
/// Sets the alignment to `1`, since all non-stack memory pages have such alignment.
|
||||
@@ -1104,7 +1103,7 @@ impl<'ctx> Context<'ctx> {
|
||||
|
||||
Ok(call_site_value
|
||||
.try_as_basic_value()
|
||||
.left()
|
||||
.basic()
|
||||
.unwrap_or_else(|| {
|
||||
panic!(
|
||||
"revive runtime function {} should return a value",
|
||||
|
||||
@@ -275,6 +275,6 @@ pub fn count_leading_zeros<'ctx>(
|
||||
"clz",
|
||||
)?
|
||||
.try_as_basic_value()
|
||||
.left()
|
||||
.basic()
|
||||
.expect("the llvm.ctlz should return a value"))
|
||||
}
|
||||
Reference in new issue
Block a user