diff options
author | Stephen Hines <srhines@google.com> | 2010-12-15 16:11:29 -0800 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2010-12-15 16:11:29 -0800 |
commit | d5f9d6c8b6944dfc30d4fea68479c2fcc250a62c (patch) | |
tree | 8c8cbd79942e78c89174de256f3609d262ab8e6a /slang_rs_object_ref_count.h | |
parent | 2ef9bc0cfbca2152d972c0975005f8c897c2a42c (diff) | |
download | android_frameworks_compile_slang-d5f9d6c8b6944dfc30d4fea68479c2fcc250a62c.tar.gz android_frameworks_compile_slang-d5f9d6c8b6944dfc30d4fea68479c2fcc250a62c.tar.bz2 android_frameworks_compile_slang-d5f9d6c8b6944dfc30d4fea68479c2fcc250a62c.zip |
Convert from use of Expr -> Stmt.
This will facilitate rs* array destructors (which use CompoundStmt).
Bug: 3092382
Change-Id: I17d86ccedfb6f40c49a491a80dbced55ed917c8f
Diffstat (limited to 'slang_rs_object_ref_count.h')
-rw-r--r-- | slang_rs_object_ref_count.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/slang_rs_object_ref_count.h b/slang_rs_object_ref_count.h index 4b04668..580b955 100644 --- a/slang_rs_object_ref_count.h +++ b/slang_rs_object_ref_count.h @@ -26,6 +26,7 @@ namespace clang { class Expr; + class Stmt; } namespace slang { @@ -57,7 +58,7 @@ class RSObjectRefCount : public clang::StmtVisitor<RSObjectRefCount> { void InsertLocalVarDestructors(); - static clang::Expr *ClearRSObject(clang::VarDecl *VD); + static clang::Stmt *ClearRSObject(clang::VarDecl *VD); }; std::stack<Scope*> mScopeStack; |