aboutsummaryrefslogtreecommitdiffstats
path: root/slang_rs_check_ast.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'slang_rs_check_ast.cpp')
-rw-r--r--slang_rs_check_ast.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/slang_rs_check_ast.cpp b/slang_rs_check_ast.cpp
index 15859e3..b5cb024 100644
--- a/slang_rs_check_ast.cpp
+++ b/slang_rs_check_ast.cpp
@@ -152,7 +152,7 @@ void RSCheckAST::ValidateFunctionDecl(clang::FunctionDecl *FD) {
// Validate parameters for Filterscript.
size_t numParams = FD->getNumParams();
- clang::QualType resultType = FD->getResultType().getCanonicalType();
+ clang::QualType resultType = FD->getReturnType().getCanonicalType();
// We use FD as our NamedDecl in the case of a bad return type.
if (!RSExportType::ValidateType(Context, C, resultType, FD,