aboutsummaryrefslogtreecommitdiffstats
path: root/slang_rs_export_func.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'slang_rs_export_func.cpp')
-rw-r--r--slang_rs_export_func.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/slang_rs_export_func.cpp b/slang_rs_export_func.cpp
index 9a7afa3..52dfc51 100644
--- a/slang_rs_export_func.cpp
+++ b/slang_rs_export_func.cpp
@@ -36,7 +36,7 @@ static bool ValidateFuncDecl(slang::RSContext *Context,
const clang::FunctionDecl *FD) {
slangAssert(Context && FD);
const clang::ASTContext &C = FD->getASTContext();
- if (FD->getResultType().getCanonicalType() != C.VoidTy) {
+ if (FD->getReturnType().getCanonicalType() != C.VoidTy) {
Context->ReportError(
FD->getLocation(),
"invokable non-static functions are required to return void");