Skip to content

Commit

Permalink
[flang] Semantics checker for STOP and ERROR STOP statements - remove…
Browse files Browse the repository at this point in the history
… tools function not needed after recent commit

Signed-off-by: Paul Osmialowski <pawel.osmialowski@arm.com>

Original-commit: flang-compiler/f18@1a3dbd9
Reviewed-on: flang-compiler/f18#367
Tree-same-pre-rewrite: false
  • Loading branch information
pawosm-arm authored Apr 17, 2019
1 parent 9cb7ec5 commit 9579f55
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions flang/lib/semantics/tools.cc
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,4 @@ bool ExprTypeKindIsDefault(
dynamicType->kind ==
context.defaultKinds().GetDefaultKind(dynamicType->category);
}

bool ExprIsScalar(const evaluate::GenericExprWrapper &expr) {
return !(expr.v.Rank() > 0);
}
}
1 change: 0 additions & 1 deletion flang/lib/semantics/tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,5 @@ bool ExprHasTypeCategory(
bool ExprHasTypeKind(const evaluate::GenericExprWrapper &expr, int kind);
bool ExprTypeKindIsDefault(
const evaluate::GenericExprWrapper &expr, const SemanticsContext &context);
bool ExprIsScalar(const evaluate::GenericExprWrapper &expr);
}
#endif // FORTRAN_SEMANTICS_TOOLS_H_

0 comments on commit 9579f55

Please sign in to comment.