diff options
author | 2014-11-07 17:05:19 -0800 | |
---|---|---|
committer | 2014-11-07 17:05:19 -0800 | |
commit | aaf29b32d1aefd10980820a67b2f36f168e68ca8 (patch) | |
tree | a273adfe3b1af2780dc91fb8b202df5e0882fdff /compiler/dex/frontend.cc | |
parent | abe07109e4128ea2adc26c0cb4312539bbe2913d (diff) |
Tidy some uses of IsCompilationEnabled.
We should be checking IsCompilationEnabled in the compiler, we wouldn't be in
the compiler were compilation disabled.
Change-Id: Ib498fb6d610e4ed517494df01efa4b64a8c12528
Diffstat (limited to 'compiler/dex/frontend.cc')
-rw-r--r-- | compiler/dex/frontend.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/dex/frontend.cc b/compiler/dex/frontend.cc index a1e2caa651..3f6231cb1f 100644 --- a/compiler/dex/frontend.cc +++ b/compiler/dex/frontend.cc @@ -88,9 +88,7 @@ static CompiledMethod* CompileMethod(CompilerDriver& driver, return nullptr; } - if (!driver.GetCompilerOptions().IsCompilationEnabled()) { - return nullptr; - } + DCHECK(driver.GetCompilerOptions().IsCompilationEnabled()); ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); CompilationUnit cu(driver.GetArenaPool()); |