Skip to content

Commit 8212ae1

Browse files
authored
Merge pull request rust-lang#139 from ptersilie/br_block
Serialise the successor block of unconditional branches.
2 parents 9cb7ad9 + 1be44a9 commit 8212ae1

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)