Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__lpython_dummy -> __lcompilers_dummy for ignoring return values of function calls #672

Merged
merged 2 commits into from
Jun 22, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Rename __lpython_dummy to __lcompilers_dummy
  • Loading branch information
czgdp1807 committed Jun 22, 2022
commit 3fb50dab2dd1dd5232c6ac61d8e4e06430337ec2
2 changes: 1 addition & 1 deletion src/lpython/semantics/python_ast_to_asr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ class CommonVisitor : public AST::BaseVisitor<Derived> {
s_generic, args_new.p, args_new.size(),
a_type, value, nullptr);
if( ignore_return_value ) {
std::string dummy_ret_name = current_scope->get_unique_name("__lpython_dummy");
std::string dummy_ret_name = current_scope->get_unique_name("__lcompilers_dummy");
ASR::asr_t* variable_asr = ASR::make_Variable_t(al, loc, current_scope,
s2c(al, dummy_ret_name), ASR::intentType::Local,
nullptr, nullptr, ASR::storage_typeType::Default,
Expand Down