Skip to content

Commit 1be44a9

Browse files
committed
Serialise the successor block of unconditional branches.
We'll need this for the new outlining algorithm.
1 parent 9cb7ad9 commit 1be44a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/YkIR/YkIRWriter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,8 @@ class YkIRWriter {
450450
//
451451
// opcode:
452452
serialiseOpcode(OpCodeBr);
453+
// successor:
454+
serialiseBlockLabel(I->getSuccessor(0));
453455
} else {
454456
// opcode:
455457
serialiseOpcode(OpCodeCondBr);

0 commit comments

Comments
 (0)