summaryrefslogtreecommitdiff
path: root/compiler/common_compiler_test.cc
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2018-06-21 12:51:22 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-06-21 12:51:22 +0000
commit7e56bd41cde4e489a11050d9e340bf8b5692d9e8 (patch)
tree2ec461de8ec15383134f4c6e209f4b8a33854277 /compiler/common_compiler_test.cc
parent44217b253bf4e5990de7051129ecda34f94d7f25 (diff)
parent54159c6c6fe529a55ef3d15a3c8418362d5a43fb (diff)
Merge "Use HashSet<std::string> instead of unordered_set<>."
Diffstat (limited to 'compiler/common_compiler_test.cc')
-rw-r--r--compiler/common_compiler_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/common_compiler_test.cc b/compiler/common_compiler_test.cc
index 1d4f020391..c37d4523c4 100644
--- a/compiler/common_compiler_test.cc
+++ b/compiler/common_compiler_test.cc
@@ -136,9 +136,9 @@ void CommonCompilerTest::MakeExecutable(ObjPtr<mirror::ClassLoader> class_loader
// Get the set of image classes given to the compiler-driver in SetUp. Note: the compiler
// driver assumes ownership of the set, so the test should properly release the set.
-std::unordered_set<std::string>* CommonCompilerTest::GetImageClasses() {
+std::unique_ptr<HashSet<std::string>> CommonCompilerTest::GetImageClasses() {
// Empty set: by default no classes are retained in the image.
- return new std::unordered_set<std::string>();
+ return std::make_unique<HashSet<std::string>>();
}
// Get ProfileCompilationInfo that should be passed to the driver.