Skip to content

Commit 91eabe8

Browse files
badnikhilthewilsonator
authored andcommitted
Fix typo: isNonComputeCallExpVaild -> isNonComputeCallExpValid
1 parent 08a3b29 commit 91eabe8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gen/semantic-dcompute.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct DComputeSemanticAnalyser : public StoppableVisitor {
3838
// the
3939
// template declaration, it's module of origin is the module at the point of
4040
// instansiation so we need to check for that.
41-
bool isNonComputeCallExpVaild(CallExp *ce) {
41+
bool isNonComputeCallExpValid(CallExp *ce) {
4242
FuncDeclaration *f = ce->f;
4343
if (f->ident == Id::dcReflect)
4444
return true;
@@ -243,7 +243,7 @@ struct DComputeSemanticAnalyser : public StoppableVisitor {
243243

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

0 commit comments

Comments
 (0)