Skip to content

Commit

Permalink
Allow qualifiers on kernel statements
Browse files Browse the repository at this point in the history
  • Loading branch information
noelchalmers committed Dec 15, 2023
1 parent 35c0456 commit 4b9dd4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/occa/internal/lang/modes/okl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace occa {
bool kernelHasValidReturnType(functionDeclStatement &kernelSmnt) {
vartype_t &returnType = kernelSmnt.function().returnType;

if (returnType.qualifiers.size() || (*returnType.type != void_)) {
if (*returnType.type != void_) {
returnType.printError(
"[@kernel] functions must have a [void] return type"
);
Expand Down

0 comments on commit 4b9dd4d

Please sign in to comment.