diff options
| -rw-r--r-- | src/compiler/codegen/MethodCodegenDriver.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/codegen/MethodCodegenDriver.cc b/src/compiler/codegen/MethodCodegenDriver.cc index e76834d7c6..606a1ed98d 100644 --- a/src/compiler/codegen/MethodCodegenDriver.cc +++ b/src/compiler/codegen/MethodCodegenDriver.cc @@ -866,6 +866,7 @@ void handleExtendedMethodMIR(CompilationUnit* cUnit, BasicBlock* bb, MIR* mir) /* Handle the content in each basic block */ bool methodBlockCodeGen(CompilationUnit* cUnit, BasicBlock* bb) { + if (bb->blockType == kDead) return false; MIR* mir; LIR* labelList = cUnit->blockLabelList; int blockId = bb->id; |