summaryrefslogtreecommitdiff
path: root/compiler/optimizing/nodes.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2017-03-27 12:56:16 +0100
committer Nicolas Geoffray <ngeoffray@google.com> 2017-03-27 12:57:53 +0100
commit53fec08731de956fc68e6edb27e8266607b1a5f2 (patch)
tree21d0ea79508e5a0b52ad9d37413f752f1bc92854 /compiler/optimizing/nodes.h
parent047871f579524e183357363c284d54f3ec2e4610 (diff)
Initialize art_method_ in HGraph.
Spotted by Ivan Maidanski! Benign as HGraph is allocated on the arena, and arenas are always zero initialized. test: test-art-host Change-Id: Id8abe421e732dcf7a760f118b16b85fe1fac7c78
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r--compiler/optimizing/nodes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h
index 6881d8f6ae..fb0c889792 100644
--- a/compiler/optimizing/nodes.h
+++ b/compiler/optimizing/nodes.h
@@ -341,6 +341,7 @@ class HGraph : public ArenaObject<kArenaAllocGraph> {
cached_long_constants_(std::less<int64_t>(), arena->Adapter(kArenaAllocConstantsMap)),
cached_double_constants_(std::less<int64_t>(), arena->Adapter(kArenaAllocConstantsMap)),
cached_current_method_(nullptr),
+ art_method_(nullptr),
inexact_object_rti_(ReferenceTypeInfo::CreateInvalid()),
osr_(osr),
cha_single_implementation_list_(arena->Adapter(kArenaAllocCHA)) {