Merge "Skip RenderScript validation on implicitly defined types"
am: 86e0277526

Change-Id: I65da29354540ba5c10c9701bb8f332b55c435c9b
diff --git a/slang_rs_check_ast.cpp b/slang_rs_check_ast.cpp
index e417b62..778f530 100644
--- a/slang_rs_check_ast.cpp
+++ b/slang_rs_check_ast.cpp
@@ -291,6 +291,11 @@
           DE = TUDecl->decls_end();
        DI != DE;
        DI++) {
+
+    // Following tests are not applicable to implicitly defined types
+    if (DI->isImplicit())
+      continue;
+
     if (!Slang::IsLocInRSHeaderFile(DI->getLocStart(), mSM)) {
       if (clang::VarDecl *VD = llvm::dyn_cast<clang::VarDecl>(*DI)) {
         ValidateVarDecl(VD);