diff options
| author | 2016-04-04 11:11:34 +0000 | |
|---|---|---|
| committer | 2016-04-04 11:11:34 +0000 | |
| commit | a2013f66442bfe429f027b6f8fb5f88635fe51d5 (patch) | |
| tree | 01702f6df5c39925b354a3152dd04289e7d97062 /compiler/optimizing/optimizing_unit_test.h | |
| parent | 0cb5c86b7021e70cbf584c1455aad1ef383af786 (diff) | |
| parent | 86ea7eeabe30c98bbe1651a51d03cb89776724e7 (diff) | |
Merge "Build dominator tree before generating HInstructions"
Diffstat (limited to 'compiler/optimizing/optimizing_unit_test.h')
| -rw-r--r-- | compiler/optimizing/optimizing_unit_test.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/optimizing/optimizing_unit_test.h b/compiler/optimizing/optimizing_unit_test.h index 0ca7305d13..b140125d14 100644 --- a/compiler/optimizing/optimizing_unit_test.h +++ b/compiler/optimizing/optimizing_unit_test.h @@ -91,8 +91,8 @@ inline HGraph* CreateCFG(ArenaAllocator* allocator, { ScopedObjectAccess soa(Thread::Current()); StackHandleScopeCollection handles(soa.Self()); - HGraphBuilder builder(graph, return_type); - bool graph_built = (builder.BuildGraph(*item, &handles) == kAnalysisSuccess); + HGraphBuilder builder(graph, *item, return_type); + bool graph_built = (builder.BuildGraph(&handles) == kAnalysisSuccess); return graph_built ? graph : nullptr; } } @@ -109,7 +109,8 @@ inline std::string Patch(const std::string& original, const diff_t& diff) { std::string result = original; for (const auto& p : diff) { std::string::size_type pos = result.find(p.first); - EXPECT_NE(pos, std::string::npos); + DCHECK_NE(pos, std::string::npos) + << "Could not find: \"" << p.first << "\" in \"" << result << "\""; result.replace(pos, p.first.size(), p.second); } return result; |