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 72b97a7..845db4c 100644
--- a/slang_rs_check_ast.cpp
+++ b/slang_rs_check_ast.cpp
@@ -82,7 +82,7 @@ void RSCheckAST::ValidateVarDecl(clang::VarDecl *VD) {
clang::QualType QT = VD->getType();
- if (VD->getLinkage() == clang::ExternalLinkage) {
+ if (VD->getFormalLinkage() == clang::ExternalLinkage) {
llvm::StringRef TypeName;
const clang::Type *T = QT.getTypePtr();
if (!RSExportType::NormalizeType(T, TypeName, &mDiagEngine, VD)) {