diff options
Diffstat (limited to 'vm/compiler/IntermediateRep.c')
-rw-r--r-- | vm/compiler/IntermediateRep.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vm/compiler/IntermediateRep.c b/vm/compiler/IntermediateRep.c index 29889005b..db68c3c85 100644 --- a/vm/compiler/IntermediateRep.c +++ b/vm/compiler/IntermediateRep.c @@ -18,10 +18,13 @@ #include "CompilerInternals.h" /* Allocate a new basic block */ -BasicBlock *dvmCompilerNewBB(BBType blockType) +BasicBlock *dvmCompilerNewBB(BBType blockType, int blockId) { BasicBlock *bb = (BasicBlock *)dvmCompilerNew(sizeof(BasicBlock), true); bb->blockType = blockType; + bb->id = blockId; + bb->predecessors = dvmCompilerAllocBitVector(blockId > 32 ? blockId : 32, + true /* expandable */); return bb; } |