forked from OSchip/llvm-project
[flang] clean up for review
Original-commit: flang-compiler/f18@9bf94ea39c Reviewed-on: https://github.com/flang-compiler/f18/pull/538 Tree-same-pre-rewrite: false
This commit is contained in:
parent
8e93226e74
commit
c140c1e674
|
@ -319,8 +319,8 @@ template<typename T> Expr<SubscriptInteger> Designator<T>::LEN() const {
|
|||
}
|
||||
|
||||
Expr<SubscriptInteger> ProcedureDesignator::LEN() const {
|
||||
// TODO pmk: this needs more thought for assumed-length
|
||||
// character functions, &c.
|
||||
// TODO: this needs more thought for assumed-length
|
||||
// character functions, intrinsics, &c.
|
||||
return std::visit(
|
||||
common::visitors{
|
||||
[](const Symbol *s) { return SymbolLEN(*s); },
|
||||
|
|
|
@ -1652,8 +1652,9 @@ MaybeExpr ExpressionAnalyzer::Analyze(const parser::Expr::PercentLoc &x) {
|
|||
// Use the actual source for the name of the call for error reporting.
|
||||
if (MaybeExpr arg{Analyze(x.v.value())}) {
|
||||
parser::CharBlock at{GetContextualMessages().at()};
|
||||
CHECK(at[0] == '%');
|
||||
parser::CharBlock loc{at.begin() + 1, at.end()};
|
||||
CHECK(at.size() >= 4);
|
||||
parser::CharBlock loc{at.begin() + 1, 3};
|
||||
CHECK(loc == "loc");
|
||||
return MakeFunctionRef(
|
||||
loc, ActualArguments{ActualArgument{std::move(*arg)}});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue