mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-21 12:41:02 +00:00
Prevent frontend function confusion (#383)
Function symbols can clash as we compile multiple YUL `object` definition into the same `LLVM` module. - Disambiguate via unique function symbols based its location (runtime or deploy code). - Use `LinkOnceODR` linkage for compiler builtin helpers. --------- Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
This commit is contained in:
@@ -135,7 +135,7 @@ impl FunctionCall {
|
||||
values.push(value);
|
||||
}
|
||||
values.reverse();
|
||||
let function = context.get_function(name.as_str()).ok_or_else(|| {
|
||||
let function = context.get_function(name.as_str(), true).ok_or_else(|| {
|
||||
anyhow::anyhow!("{} Undeclared function `{}`", location, name)
|
||||
})?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user