diff options
| author | 2017-01-10 18:40:25 +0000 | |
|---|---|---|
| committer | 2017-01-10 18:40:26 +0000 | |
| commit | 2e17788df086284845108c6b39954a5c74e93a69 (patch) | |
| tree | be70c7ed8a56e3deacec25274957f639d6680e65 /compiler/optimizing/codegen_test.cc | |
| parent | 26baea602e04c2bc4aed25f0d5257317f2973749 (diff) | |
| parent | 3a2e78ebade9f7e0444be6f6817cbf116b34e7b1 (diff) | |
Merge "Fix some issues reported by Valgrind"
Diffstat (limited to 'compiler/optimizing/codegen_test.cc')
| -rw-r--r-- | compiler/optimizing/codegen_test.cc | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/compiler/optimizing/codegen_test.cc b/compiler/optimizing/codegen_test.cc index 879b4ce59e..e3f3df0ff5 100644 --- a/compiler/optimizing/codegen_test.cc +++ b/compiler/optimizing/codegen_test.cc @@ -15,6 +15,7 @@   */  #include <functional> +#include <memory>  #include "arch/instruction_set.h"  #include "arch/arm/instruction_set_features_arm.h" @@ -299,8 +300,8 @@ static void RunCode(CodegenTargetConfig target_config,                      bool has_result,                      Expected expected) {    CompilerOptions compiler_options; -  CodeGenerator* codegen = target_config.CreateCodeGenerator(graph, compiler_options); -  RunCode(codegen, graph, hook_before_codegen, has_result, expected); +  std::unique_ptr<CodeGenerator> codegen(target_config.CreateCodeGenerator(graph, compiler_options)); +  RunCode(codegen.get(), graph, hook_before_codegen, has_result, expected);  }  #ifdef ART_ENABLE_CODEGEN_arm |