diff options
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/optimizing/inliner.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/optimizing/inliner.cc b/compiler/optimizing/inliner.cc index 83f8d83bc4..5c73fd8696 100644 --- a/compiler/optimizing/inliner.cc +++ b/compiler/optimizing/inliner.cc @@ -69,6 +69,13 @@ void HInliner::Run() { bool should_inline = callee_name.find("$inline$") != std::string::npos; CHECK(!should_inline) << "Could not inline " << callee_name; } + } else { + if (kIsDebugBuild) { + std::string callee_name = + PrettyMethod(call->GetDexMethodIndex(), *outer_compilation_unit_.GetDexFile()); + bool must_not_inline = callee_name.find("$noinline$") != std::string::npos; + CHECK(!must_not_inline) << "Should not have inlined " << callee_name; + } } } instruction = next; |