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

Fix typos #26276

Merged
merged 41 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
d69a52a
Fix typo in baseAST.cpp
cassella Jul 12, 2024
c730615
Fix typos in gpuTransforms.cpp
cassella Jul 12, 2024
5466e5e
Fix typo in functionResolution.cpp
cassella Jul 12, 2024
a6fa158
Fix typo in spec domain-maps.rst
cassella Jul 12, 2024
6b5092f
Fix typo in remote.rst technote
cassella Jul 12, 2024
b24c10d
Fix typo in static.rst technote
cassella Jul 12, 2024
06e7235
Fix typo in default-functions.cpp
cassella Jul 12, 2024
5bd1644
Fix typos in scope-queries.cpp
cassella Jul 12, 2024
c14c28b
Fix typo in IO.chpl
cassella Jul 12, 2024
07756ae
Fix typo in chpl-gpu.c
cassella Jul 12, 2024
8927afb
Fix typo in convert-uast.cpp
cassella Sep 26, 2024
14f6428
Fix typos in normalize.cpp
cassella Sep 26, 2024
54f3d3f
Fix typo in gpu technote
cassella Sep 26, 2024
24fe43a
Fix typo in usingchapel/chplenv.rst
cassella Sep 26, 2024
be36827
Fix typo in scope-queries.h
cassella Sep 26, 2024
f336066
Fix typo in scope-types.h
cassella Sep 26, 2024
ae4756c
Fix typo in Builder.h
cassella Sep 26, 2024
1c6bca9
Fix typo in InitResolver.cpp
cassella Sep 26, 2024
a025586
Fix typos in Resolver.cpp
cassella Sep 26, 2024
28a2e33
Fix typo in resolution-types.cpp
cassella Sep 26, 2024
f7250f0
Fix typo in DSIUtil.chpl
cassella Sep 26, 2024
bf8f629
Fix typo in ChapelArrayViewElision.chpl
cassella Sep 26, 2024
3390252
Fix typo in ChapelDomain.chpl and update tests
cassella Sep 26, 2024
dd0887b
Fix typo in SharedObject.chpl
cassella Nov 20, 2024
4c024e8
Fix typo in IO.chpl
cassella Nov 20, 2024
171a3a5
Fix typo in OS.chpl
cassella Nov 20, 2024
94b77de
Fix typo in ofi/README.md
cassella Nov 20, 2024
e886335
Fix typo in ANNOTATIONS.yaml
cassella Nov 20, 2024
c35da47
Fix typo in Sort.chpl
cassella Nov 20, 2024
f597594
Fix typo in cg-stmt.cpp
cassella Nov 20, 2024
2e2ee74
Fix typo in gpuTransforms.cpp
cassella Nov 20, 2024
6d369ff
Fix typos in convert-typed-uast.cpp
cassella Nov 20, 2024
db295ad
Fix typo in Context-detail.h
cassella Nov 20, 2024
bcbcbb3
Fix typo in ResolutionContext.h
cassella Nov 20, 2024
494d52b
Fix typo in resolution-types.h
cassella Nov 20, 2024
a47b54d
Fix typos in Resolver.cpp
cassella Nov 20, 2024
1ba8fca
Fix typo in resolution-queries.cpp
cassella Nov 20, 2024
1037dd5
Fix typos in comm-ofi.c
cassella Nov 20, 2024
99629d3
Fix typo in topo-hwloc.c
cassella Nov 20, 2024
77ba14d
Fix typo in ANNOTATIONS.yaml
cassella Nov 20, 2024
7a4f421
Fix typo in taskParallel primer
cassella Nov 20, 2024
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 compiler/AST/baseAST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ static Symbol* lookupTransitively(SymbolMap* map, Symbol* sym) {
Symbol* x = map->get(sym);
if (!x) return x;

// If the symbol is re-maped again (e.g., x was y and y was z),
// If the symbol is re-mapped again (e.g., x was y and y was z),
// we need to keep looking until we find the final symbol.
while (Symbol* y = map->get(x)) {
// Detect naive cycles. Note that this will not find multi-step cycles,
Expand Down
2 changes: 1 addition & 1 deletion compiler/codegen/cg-stmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ GenRet BlockStmt::codegen() {
********************************* | ********************************/

// If this is 'if gCpuVsGpuToken then ... else ...'
// then return the approrpiate branch, else nil.
// then return the appropriate branch, else nil.
static BlockStmt* chooseCpuVsGpuBranch(CondStmt* cond) {
if (SymExpr* se = toSymExpr(cond->condExpr))
if (se->symbol() == gCpuVsGpuToken)
Expand Down
8 changes: 4 additions & 4 deletions compiler/optimizations/gpuTransforms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ void KernelArg::findReduceKind() {
// do some pattern matching in the AST to find the reduce kind
// This should be OK except that `accumulate` in SumReduceScanOp is the only
// accumulate proc that's inlined. So, we'll have to do some matching on the
// inlined function, which is never great. Morever, if we inline another
// inlined function, which is never great. Moreover, if we inline another
// accumulate function in one of the other reduction types, it'll probably be
// an unsupported reduction.
//
Expand Down Expand Up @@ -1520,7 +1520,7 @@ Symbol* GpuKernel::addKernelArgument(Symbol* symInLoop, bool isCompilerGenerated
this->incReductionBufs();
}

// if reduction variable, add the function definiton for the final reduction
// if reduction variable, add the function definition for the final reduction
// wrapper
if (FnSymbol* reduceWrapper = arg.reduceWrapper()) {
fn_->defPoint->insertBefore(new DefExpr(reduceWrapper));
Expand Down Expand Up @@ -1752,7 +1752,7 @@ void GpuKernel::generatePostBody() {
fn_->insertAtTail(this->postBody_);
}

// Returns the GPU primives block within 'body', or null if none.
// Returns the GPU primitives block within 'body', or null if none.
// Note: this searches inside nested loops - needed for multi-dim arrays, ex:
// var A: [1..n,1..n] int;
// @gpu.blockSize foreach A {}
Expand Down Expand Up @@ -2452,7 +2452,7 @@ static void cleanupPrimitives() {
// var taskIndX = PRIM_TASK_IND_CAPTURE_OF(copy-of(x));
//
// For gpuized loops GPU lowering rewrites this as needed to ensure each thread
// has an indpendent copy-of x, loops that are not gpuized will have remaining
// has an independent copy-of x, loops that are not gpuized will have remaining
// uses of the primitive, which we process by removing the primitive but keeping
// the copy.
callExpr->replace(callExpr->get(1)->remove());
Expand Down
4 changes: 2 additions & 2 deletions compiler/passes/convert-typed-uast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ ModuleSymbol* TConverter::convertModule(const Module* mod) {
submodulesEncountered.clear();
convertModuleInit(mod, modSym);

// Additionally, convert any submodules encontered.
// Additionally, convert any submodules encountered.
// This is handled as a follow-on step in order to avoid storing
// various pieces of TConverter state in a stack.
for (const uast::Module* submod : submodulesEncountered) {
Expand Down Expand Up @@ -1544,7 +1544,7 @@ Type* TConverter::helpConvertClassType(const types::ClassType* t) {

const types::RecordType* manager = t->managerRecordType(context);
if (manager == nullptr) {
ret = at; // unamanged / borrowed is just the class type at this point
ret = at; // unmanaged / borrowed is just the class type at this point
} else {
// owned/shared should have had a substitution for chpl_t
CHPL_ASSERT(!manager->substitutions().empty());
Expand Down
2 changes: 1 addition & 1 deletion compiler/passes/convert-uast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3674,7 +3674,7 @@ struct Converter final : UastConverter {
auto* ident =
uast::Class::getUnwrappedInheritExpr(inheritExpr, thisInheritMarkedGeneric);

// Always convert the taraget expression so that we note used modules
// Always convert the target expression so that we note used modules
// as needed. We won't necessarily use the resulting expression;
// see the comment below.
auto converted = convertExprOrNull(ident);
Expand Down
4 changes: 2 additions & 2 deletions compiler/passes/normalize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ static void preNormalizeHandleStaticVars() {
// Don't put the reset call into the function body right away because
// at this time, myStaticVar is a non-global variable, so the function
// is capturing it. We use the function as an FCF argument to
// 'executeStaticWraperCleanup', and capturing FCFs do not work. The
// 'executeStaticWrapperCleanup', and capturing FCFs do not work. The
// relocation of the reset call will happen after the static variable has
// been hoisted to the module level.
//
Expand Down Expand Up @@ -1776,7 +1776,7 @@ Expr* partOfNonNormalizableExpr(Expr* expr) {
Expr* root = nullptr;
if (call->isPrimitive(PRIM_RESOLVES) ||

// Static resolution calls are not normalizeable so that they
// Static resolution calls are not normalizable so that they
// don't "spill" their call temps outside of the primitive call.
// If they are "spilled", replacing the primitive with its result
// will still leave behind the temps; normally these would be
Expand Down
2 changes: 1 addition & 1 deletion compiler/resolution/functionResolution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ bool canInstantiate(Type* actualType, Type* formalType) {
// We may have a 'DecoratedClassType' as one of the arguments
// (e.g. anymanaged x1) and a regular class (e.g. shared(x2)) as another.
// This would've failed the check above, since anymanaged x1 is not
// an aggregate typem and x1 is not an instantiation of shared(x2), either.
// an aggregate type and x1 is not an instantiation of shared(x2), either.
//
// By the above condition, x1 != x2, but instantiation is still possible
// if one of the xs instantiates another. Strip the 'owned' etc.
Expand Down
2 changes: 1 addition & 1 deletion doc/rst/language/spec/domain-maps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ determined by its type and so does not change upon a domain assignment.

.. code-block:: chapel

use BlockDist:
use BlockDist;
var Dom1 = blockDist.createDomain({1..5,1..6});
var Dom2: domain(2) = Dom1;

Expand Down
2 changes: 1 addition & 1 deletion doc/rst/technotes/gpu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Overview
The Chapel compiler will generate GPU kernels for certain parallel operations
such as ``forall``/``foreach`` loops, ``reduce`` expressions and promoted
expressions. These will be launched onto a GPU when the current locale (e.g.
``here``) is the sublocale representing that particluar GPU. To deploy code to a
``here``) is the sublocale representing that particular GPU. To deploy code to a
GPU, put the relevant code in an ``on`` statement targeting a GPU sublocale
(i.e. ``here.gpus[0]``).

Expand Down
2 changes: 1 addition & 1 deletion doc/rst/technotes/remote.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Remote Variable Declarations
.. warning::

This work is under active development. As such, the interface and behavior
of tremote variables is unstable and expected to change.
of remote variables is unstable and expected to change.

.. contents::

Expand Down
2 changes: 1 addition & 1 deletion doc/rst/technotes/static.rst
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ initial value. Subsequent changes to the static variable are only visible to
the locale. The purpose for this approach is to support the pre-computation of
values "near" where the computation takes place. This way, each locale can
reference its own copy of the pre-computed data, without the need for
any communication. By changing the sharing kind to ``comutePerLocale``:
any communication. By changing the sharing kind to ``computePerLocale``:

.. code-block:: chapel

Expand Down
2 changes: 1 addition & 1 deletion doc/rst/usingchapel/chplenv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ CHPL_LLVM_GCC_INSTALL_DIR
Sometimes it's necessary to request that ``clang`` work with a
particular version of GCC. If many versions are installed at the same
prefix (e.g. ``/usr``) then ``CHPL_LLVM_GCC_PREFIX`` won't be able to
differentate between them. That is where ``CHPL_LLVM_GCC_INSTALL_DIR``
differentiate between them. That is where ``CHPL_LLVM_GCC_INSTALL_DIR``
comes in!

To understand what to set ``CHPL_LLVM_GCC_INSTALL_DIR`` to in such
Expand Down
2 changes: 1 addition & 1 deletion frontend/include/chpl/framework/Context-detail.h
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ class QueryMapResultBase {
// lastChanged indicates the last revision in which the query result
// has changed
mutable RevisionNumber lastChanged = -1;
// This field exists to support isQueryRunning. When traversingg the dependencies
// This field exists to support isQueryRunning. When traversing the dependencies
// of a query, we may re-run dependency queries to see if their results change.
// Sometimes, these queries will check isQueryRunning. At this time, the
// actual query (this) is not running, but we want to return 'true' to hide
Expand Down
2 changes: 1 addition & 1 deletion frontend/include/chpl/resolution/ResolutionContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class MatchingIdsWithName;
At any point in time, a 'ResolutionContext*' is either stable or unstable.
It is unstable if it has one or more unstable frames.

When the 'ResolutionContext*' is unstable, any 'CHPL_RESOUTION_QUERY...'
When the 'ResolutionContext*' is unstable, any 'CHPL_RESOLUTION_QUERY...'
will consult the passed in query arguments in order to determine if the
'Context*' query cache can be used. If the arguments may refer to a
nested function, then the computed result is not cached in the global
Expand Down
2 changes: 1 addition & 1 deletion frontend/include/chpl/resolution/resolution-types.h
Original file line number Diff line number Diff line change
Expand Up @@ -2019,7 +2019,7 @@ class CallResolutionResult {
the iteration (e.g., lack of a follower iterator)

In the case of failure due to zippering (e.g., we're iterating over a
loop expression, but the Nth zippred iterand doesn't have the appropriate
loop expression, but the Nth zippered iterand doesn't have the appropriate
iterator), this type contains a 'zipperedFailure_' field, which contains
the result of trying to iterate the Nth iterand, and a 'zipperedFailureIndex_'
which is the index of the failed iterand.
Expand Down
2 changes: 1 addition & 1 deletion frontend/include/chpl/resolution/scope-queries.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ namespace resolution {

/**
Given a Scope* for a Module, return a DeclMap containing all symbols
publically available from that module, including those brought in
publicly available from that module, including those brought in
transitively by use/import. */
const ModulePublicSymbols* publicSymbolsForModule(Context* context, const Scope* modScope);

Expand Down
2 changes: 1 addition & 1 deletion frontend/include/chpl/resolution/scope-types.h
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ class MethodLookupHelper {
/** This type helps lookupNameInScope and related functions.
When performing name lookup within a method, the name
might refer to a field or tertiary method. Such matches
are checked for by searching the method reciver scopes
are checked for by searching the method receiver scopes
at the time that the method signature is encountered in the
process of searching parent scopes. This type includes
a method that can return an appropriate MethodLookupHelper
Expand Down
2 changes: 1 addition & 1 deletion frontend/include/chpl/uast/Builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class Builder final {
#include "all-location-maps.h"
#undef LOCATION_MAP

/** Delete all the locations storedfor the current AST. This is useful if the
/** Delete all the locations stored for the current AST. This is useful if the
AST is being deallocated, which means future uses of this pointer
(the memory could be re-used) must not have locations out of the box.
*/
Expand Down
4 changes: 2 additions & 2 deletions frontend/lib/resolution/InitResolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,9 @@ static const Type* ctFromSubs(Context* context,
const Type* ret = nullptr;

if (auto rec = receiverType->toRecordType()) {
auto instantatiatedFrom = subs.empty() ? nullptr : root->toRecordType();
auto instantiatedFrom = subs.empty() ? nullptr : root->toRecordType();
ret = RecordType::get(context, rec->id(), rec->name(),
instantatiatedFrom,
instantiatedFrom,
subs);
} else if (auto cls = receiverType->toClassType()) {
auto oldBasic = cls->basicClassType();
Expand Down
8 changes: 4 additions & 4 deletions frontend/lib/resolution/Resolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3059,7 +3059,7 @@ MatchingIdsWithName Resolver::lookupIdentifier(
// procs can be ruled out if their 'where' clauses are false. If even
// one identifier is not a parenless proc, there's an ambiguity.
//
// outParenlessOverloadInfo will be falsey if we found non-parenless-proc
// outParenlessOverloadInfo will be false if we found non-parenless-proc
// IDs. In that case we may emit an ambiguity error later, after filtering
// out incorrect receivers.
outParenlessOverloadInfo =
Expand Down Expand Up @@ -4982,7 +4982,7 @@ static IterDetails resolveIterDetails(Resolver& rv,

// Only issue a "not iterable" error if the iterand has a type. If it was
// not typed then earlier resolution of the iterand will have spit out an
// approriate error for us already.
// appropriate error for us already.
if (ret.succeededAt == IterDetails::NONE && !iterandRe.type().isUnknownOrErroneous()) {
auto& iterandRE = rv.byPostorder.byAst(iterand);
if (!iterandRE.type().isUnknownOrErroneous()) {
Expand Down Expand Up @@ -5022,7 +5022,7 @@ static bool isExplicitlyTaggedIteratorCall(Context* context,

// We could've ended up resolving a leader automatically from a serial
// call (if the serial overload doesn't exist). To check that this was
// an explicit tag, we need to not have any ITERATE associted actions.
// an explicit tag, we need to not have any ITERATE associated actions.
auto count = std::count_if(re.associatedActions().begin(),
re.associatedActions().end(),
[](const AssociatedAction& aa) {
Expand Down Expand Up @@ -5363,7 +5363,7 @@ static bool handleArrayTypeExpr(Resolver& rv,
bodyType = QualifiedType(QualifiedType::TYPE, AnyType::get(rv.context));
}

// The body wasn't a type, so this isn't an array type epxression
// The body wasn't a type, so this isn't an array type expression
// Make an exception for unknown or erroneous bodies, since the user may
// have been trying to define a type but made a mistake (or we may be
// in a partially-instantiated situation and the type is not yet known).
Expand Down
2 changes: 1 addition & 1 deletion frontend/lib/resolution/default-functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ generateCastToEnum(Context* context,
const TypedFnSignature*
getCompilerGeneratedMethod(Context* context, const QualifiedType receiverType,
UniqueString name, bool parenless) {
// Normalize recieverType to allow TYPE methods on c_ptr and _ddata, and to
// Normalize receiverType to allow TYPE methods on c_ptr and _ddata, and to
// otherwise use the VAR Kind. The Param* value is also stripped away to
// reduce queries.
auto qt = receiverType;
Expand Down
2 changes: 1 addition & 1 deletion frontend/lib/resolution/resolution-queries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3776,7 +3776,7 @@ static bool resolveFnCallSpecial(Context* context,
if (ci.numActuals() == 2 || ci.hasQuestionArg()) {
auto lhs = ci.actual(0).type();

// support comparisions with '?'
// support comparisons with '?'
auto rhs = ci.hasQuestionArg() ?
QualifiedType(QualifiedType::TYPE, AnyType::get(context)) :
ci.actual(1).type();
Expand Down
6 changes: 3 additions & 3 deletions frontend/lib/resolution/resolution-types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -773,12 +773,12 @@ bool FormalActualMap::computeAlignment(const UntypedFnSignature* untyped,
}

static bool
syncaticallyGenericFieldsPriorToIdHaveSubs(Context* context,
syntacticallyGenericFieldsPriorToIdHaveSubs(Context* context,
const CompositeType* ct,
ID fieldId) {
if (auto bct = ct->toBasicClassType()) {
if (auto parentCt = bct->parentClassType()) {
if (!syncaticallyGenericFieldsPriorToIdHaveSubs(context, parentCt, fieldId)) {
if (!syntacticallyGenericFieldsPriorToIdHaveSubs(context, parentCt, fieldId)) {
return false;
}
}
Expand Down Expand Up @@ -822,7 +822,7 @@ void ResolvedFields::validateFieldGenericity(Context* context, const types::Comp
return;
}

if (!syncaticallyGenericFieldsPriorToIdHaveSubs(context, fieldsOfType,
if (!syntacticallyGenericFieldsPriorToIdHaveSubs(context, fieldsOfType,
fields_[0].declId)) {
return;
}
Expand Down
4 changes: 2 additions & 2 deletions frontend/lib/resolution/scope-queries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3159,7 +3159,7 @@ void GatherMentionedModules::gatherModuleId(const ID& id) {
if (parsing::idIsModule(context, id)) {
auto p = idSet.insert(id);
if (p.second) {
// insertion occured, so add it also to the vector
// insertion occurred, so add it also to the vector
idVec.push_back(id);
}
}
Expand Down Expand Up @@ -3311,7 +3311,7 @@ void GatherMentionedModules::processUseImport(const AstNode* ast) {
if (scope && scope->containsUseImport()) {
auto p = scopes.insert(scope);
if (p.second) {
// Insertion occured, so this is the first time visiting this scope.
// Insertion occurred, so this is the first time visiting this scope.
// Gather the IDs of the used/imported modules
const ResolvedVisibilityScope* r = resolveVisibilityStmts(context, scope);
if (r != nullptr) {
Expand Down
2 changes: 1 addition & 1 deletion modules/dists/DSIUtil.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ proc bulkCommTranslateDomain(srcSlice : domain, srcDom : domain, targetDom : dom

// this is an overload for views that are ranges. This will be used by code
// paths that comes from elided array views. We could consider using this
// lighterweight implementation as a more general special case for 1D bulk
// lighter weight implementation as a more general special case for 1D bulk
// transfers.
proc bulkCommTranslateDomain(srcSlice : domain, srcView : range(?),
targetView : range(?)) {
Expand Down
8 changes: 4 additions & 4 deletions modules/internal/ChapelArrayViewElision.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module ChapelArrayViewElision {
proc chpl__ave_exprCanBeProtoSlice(base, idxExprs...) param: bool {
return chpl__ave_baseTypeSupports(base) &&
chpl__ave_idxExprsSupport(base.idxType, (...idxExprs)) &&
!chpl__ave_nonComplientSlice(base, (...idxExprs));
!chpl__ave_nonCompliantSlice(base, (...idxExprs));
}

proc chpl__ave_protoSlicesSupportAssignment(a: chpl__protoSlice,
Expand Down Expand Up @@ -408,14 +408,14 @@ module ChapelArrayViewElision {
return true;
}

private proc chpl__ave_nonComplientSlice(base, idxExprs: domain) param {
// distributed array sliced with a distributed domain is non-complient
private proc chpl__ave_nonCompliantSlice(base, idxExprs: domain) param {
// distributed array sliced with a distributed domain is non-compliant.
// such slices imply "redistribution" of the data. Right now, let's ignore
// those
return !chpl__isDROrDRView(base) && !chpl__isDROrDRView(idxExprs);
}

private proc chpl__ave_nonComplientSlice(base, idxExprs...) param {
private proc chpl__ave_nonCompliantSlice(base, idxExprs...) param {
return false;
}

Expand Down
6 changes: 3 additions & 3 deletions modules/internal/ChapelDomain.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -3116,15 +3116,15 @@ module ChapelDomain {
(if high(0).type == low.type then high(0).type else (low + high(0)).type);
var ranges: size*range(eltType);
if isTuple(low) {
if !isHomogeneousTuple(low) then compilerError("Domains defined using tuple bounds must use homogenous tuples, but got '" + low.type:string + "'");
if !isHomogeneousTuple(low) then compilerError("Domains defined using tuple bounds must use homogeneous tuples, but got '" + low.type:string + "'");
for param i in 0..<size {
if inclusive then
ranges[i] = low[i]..high;
else
ranges[i] = low[i]..<high;
}
} else {
if !isHomogeneousTuple(high) then compilerError("Domains defined using tuple bounds must use homogenous tuples, but got '" + high.type:string + "'");
if !isHomogeneousTuple(high) then compilerError("Domains defined using tuple bounds must use homogeneous tuples, but got '" + high.type:string + "'");
for param i in 0..<size {
if inclusive then
ranges[i] = low..high[i];
Expand All @@ -3142,7 +3142,7 @@ module ChapelDomain {
where isTuple(low) && isTuple(high)
{
if !isHomogeneousTuple(low) || !isHomogeneousTuple(high) then
compilerError("Domains defined using tuple bounds must use homogenous tuples, but got '" +
compilerError("Domains defined using tuple bounds must use homogeneous tuples, but got '" +
low.type:string + "' and '" + high.type:string + "'");
else if low.size != high.size then
compilerError("Domains defined using tuple bounds must use tuples of the same length, " +
Expand Down
Loading
Loading