Skip to content

Fix spelling of hasAlternateReturns #236

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

Merged
merged 1 commit into from
Jul 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion flang/lib/Lower/CallInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
//===----------------------------------------------------------------------===//

bool Fortran::lower::CallerInterface::hasAlternateReturns() const {
return procRef.HasAlternateReturns();
return procRef.hasAlternateReturns();
}

std::string Fortran::lower::CallerInterface::getMangledName() const {
Expand Down
2 changes: 1 addition & 1 deletion flang/lib/Lower/ConvertExpr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ class ExprLowering {

fir::ExtendedValue genval(const Fortran::evaluate::ProcedureRef &procRef) {
llvm::SmallVector<mlir::Type, 1> resTy;
if (procRef.HasAlternateReturns())
if (procRef.hasAlternateReturns())
resTy.push_back(builder.getIndexType());
return genProcedureRef(procRef, resTy);
}
Expand Down
3 changes: 0 additions & 3 deletions flang/lib/Semantics/expression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2011,9 +2011,6 @@ void ExpressionAnalyzer::Analyze(const parser::CallStmt &callStmt) {
analyzer.Analyze(arg, true /* is subroutine call */);
}
if (!analyzer.fatalErrors()) {
// An alternate return specifier actual argument has no code in the call.
bool hasAlternateReturns{
analyzer.GetActuals().size() < actualArgList.size()};
if (std::optional<CalleeAndArguments> callee{
GetCalleeAndArguments(std::get<parser::ProcedureDesignator>(call.t),
analyzer.GetActuals(), true /* subroutine */)}) {
Expand Down