summaryrefslogtreecommitdiffstats
path: root/compiler/dex/quick/codegen_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/dex/quick/codegen_util.cc')
-rw-r--r--compiler/dex/quick/codegen_util.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/compiler/dex/quick/codegen_util.cc b/compiler/dex/quick/codegen_util.cc
index 630e294b37..9e9b39e3ef 100644
--- a/compiler/dex/quick/codegen_util.cc
+++ b/compiler/dex/quick/codegen_util.cc
@@ -950,16 +950,13 @@ void Mir2Lir::Materialize() {
/* Allocate Registers using simple local allocation scheme */
SimpleRegAlloc();
- //FIXME: re-enable by retrieving from mir_graph
- SpecialCaseHandler special_case = kNoHandler;
-
- if (special_case != kNoHandler) {
+ if (mir_graph_->IsSpecialCase()) {
/*
* Custom codegen for special cases. If for any reason the
* special codegen doesn't succeed, first_lir_insn_ will
* set to NULL;
*/
- SpecialMIR2LIR(special_case);
+ SpecialMIR2LIR(mir_graph_->GetSpecialCase());
}
/* Convert MIR to LIR, etc. */