diff options
author | Ian Rogers <irogers@google.com> | 2013-04-18 15:54:02 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2013-04-18 15:54:02 -0700 |
commit | 6282dc12440a2072dc06a616160027ff21bd895e (patch) | |
tree | 1e318fea04d927f55ec50267e36d539984016ed1 /src/compiler/dex/backend.h | |
parent | 5d10a87ea630b22180d3731018a70b77270c726e (diff) | |
download | android_art-6282dc12440a2072dc06a616160027ff21bd895e.tar.gz android_art-6282dc12440a2072dc06a616160027ff21bd895e.tar.bz2 android_art-6282dc12440a2072dc06a616160027ff21bd895e.zip |
MIR tidying.
Fix memory leak in the MIR graph m_units_.
Don't shadow the arena_ field in Backend.
Change-Id: I0ffaebd088f1383205bde9fb34c5d33156bb7260
Diffstat (limited to 'src/compiler/dex/backend.h')
-rw-r--r-- | src/compiler/dex/backend.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/dex/backend.h b/src/compiler/dex/backend.h index 1f0c5d887c..45a1531b85 100644 --- a/src/compiler/dex/backend.h +++ b/src/compiler/dex/backend.h @@ -30,8 +30,8 @@ class Backend { virtual CompiledMethod* GetCompiledMethod() = 0; protected: - Backend() : arena_(NULL) {}; - ArenaAllocator* arena_; + Backend(ArenaAllocator* arena) : arena_(arena) {}; + ArenaAllocator* const arena_; }; // Class Backend |