Skip to content

Commit

Permalink
Use new bundled type lookup for ChapelTuple._tuple
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Rift <anna.rift@hpe.com>
  • Loading branch information
riftEmber committed Jun 18, 2024
1 parent fae39d5 commit 9b9ecfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/lib/types/TupleType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "chpl/types/TupleType.h"

#include "chpl/framework/query-impl.h"
#include "chpl/parsing/parsing-queries.h"
#include "chpl/resolution/intents.h"
#include "chpl/types/Param.h"

Expand Down Expand Up @@ -98,9 +99,8 @@ TupleType::getTupleType(Context* context, const TupleType* instantiatedFrom,
QUERY_BEGIN(getTupleType, context, instantiatedFrom, subs,
isVarArgTuple);

auto symbolPath = UniqueString::get(context, "ChapelTuple._tuple");
auto name = UniqueString::get(context, "_tuple");
auto id = ID(symbolPath, -1, 0);
auto id = parsing::getSymbolFromTopLevelModule(context, "ChapelTuple", "_tuple");
auto result = toOwned(new TupleType(id, name, instantiatedFrom,
std::move(subs), isVarArgTuple));

Expand Down

0 comments on commit 9b9ecfa

Please sign in to comment.