Skip to content

Commit f9a43de

Browse files
authored
[DirectX] replace Br with UncondBr and CondBr in DXILBitCodeWriter (#185925)
replace Br with UncondBr and CondBr in DXILBitCodeWriter after #184027
1 parent 1dd445c commit f9a43de

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2335,7 +2335,8 @@ void DXILBitcodeWriter::writeInstruction(const Instruction &I, unsigned InstID,
23352335
pushValueAndType(I.getOperand(i), InstID, Vals);
23362336
}
23372337
} break;
2338-
case Instruction::Br: {
2338+
case Instruction::UncondBr:
2339+
case Instruction::CondBr: {
23392340
Code = bitc::FUNC_CODE_INST_BR;
23402341
const BranchInst &II = cast<BranchInst>(I);
23412342
Vals.push_back(VE.getValueID(II.getSuccessor(0)));

0 commit comments

Comments
 (0)