From b95fb775cc4c08349d0d905adbc96ad85e50601d Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Wed, 30 Sep 2015 13:32:31 +0100 Subject: Optimizing: Clean up after tagging arena allocations. Change-Id: Id6ee1fe44c4c57d373db7a39530f29a5ca9aee18 --- compiler/optimizing/code_generator.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler/optimizing/code_generator.h') diff --git a/compiler/optimizing/code_generator.h b/compiler/optimizing/code_generator.h index 0a3698946e..acce5b3359 100644 --- a/compiler/optimizing/code_generator.h +++ b/compiler/optimizing/code_generator.h @@ -531,6 +531,8 @@ class CodeGenerator { template LabelType* CommonInitializeLabels() { + // We use raw array allocations instead of ArenaVector<> because Labels are + // non-constructible and non-movable and as such cannot be held in a vector. size_t size = GetGraph()->GetBlocks().size(); LabelType* labels = GetGraph()->GetArena()->AllocArray(size, kArenaAllocCodeGenerator); -- cgit v1.2.3-59-g8ed1b