Skip to content
Merged
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
4 changes: 2 additions & 2 deletions gen/semantic-dcompute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct DComputeSemanticAnalyser : public StoppableVisitor {
// the
// template declaration, it's module of origin is the module at the point of
// instansiation so we need to check for that.
bool isNonComputeCallExpVaild(CallExp *ce) {
bool isNonComputeCallExpValid(CallExp *ce) {
FuncDeclaration *f = ce->f;
if (f->ident == Id::dcReflect)
return true;
Expand Down Expand Up @@ -243,7 +243,7 @@ struct DComputeSemanticAnalyser : public StoppableVisitor {

Module *m = e->f->getModule();
if ((m == nullptr || (hasComputeAttr(m) == DComputeCompileFor::hostOnly)) &&
!isNonComputeCallExpVaild(e)) {
!isNonComputeCallExpValid(e)) {
error(e->loc, "can only call functions from other `@compute` modules in "
"`@compute` code");
stop = true;
Expand Down
Loading