File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments