From 05c08de7c153049d585fc8f5411268d95b76ed6d Mon Sep 17 00:00:00 2001 From: badnikhil Date: Tue, 23 Jun 2026 00:50:01 +0530 Subject: [PATCH] Fix typo: isNonComputeCallExpVaild -> isNonComputeCallExpValid --- gen/semantic-dcompute.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gen/semantic-dcompute.cpp b/gen/semantic-dcompute.cpp index d26bde33aa..1461b271a2 100644 --- a/gen/semantic-dcompute.cpp +++ b/gen/semantic-dcompute.cpp @@ -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; @@ -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;