Removed duplicate code due to what looks like a merge issue
This commit is contained in:
Родитель
74af05f012
Коммит
fabeeb863b
|
@ -690,6 +690,7 @@ spv_result_t spvTextEncodeOpcode(
|
|||
const spv_ext_inst_table extInstTable, spv_named_id_table namedIdTable,
|
||||
uint32_t *pBound, spv_instruction_t *pInst, spv_position position,
|
||||
spv_diagnostic *pDiagnostic) {
|
||||
|
||||
// Check for !<integer> first.
|
||||
if ('!' == text->str[position->index]) {
|
||||
return encodeInstructionStartingWithImmediate(
|
||||
|
@ -701,12 +702,6 @@ spv_result_t spvTextEncodeOpcode(
|
|||
// 1(CAF): <opcode> <operand>..., e.g., "OpTypeVoid %void".
|
||||
// 2(AAF): <result-id> = <opcode> <operand>..., e.g., "%void = OpTypeVoid".
|
||||
|
||||
if ('!' == text->str[position->index]) {
|
||||
return encodeInstructionStartingWithImmediate(
|
||||
text, operandTable, extInstTable, namedIdTable, pBound, pInst, position,
|
||||
pDiagnostic);
|
||||
}
|
||||
|
||||
std::string firstWord;
|
||||
spv_position_t nextPosition = {};
|
||||
spv_result_t error = spvTextWordGet(text, position, firstWord, &nextPosition);
|
||||
|
|
Загрузка…
Ссылка в новой задаче