diff options
Diffstat (limited to 'source/assembly_grammar.cpp')
-rw-r--r-- | source/assembly_grammar.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/assembly_grammar.cpp b/source/assembly_grammar.cpp index 79f18eee..4f5942ab 100644 --- a/source/assembly_grammar.cpp +++ b/source/assembly_grammar.cpp @@ -62,9 +62,9 @@ spv_result_t spvTextParseMaskOperand(spv_target_env env, end = std::find(begin, text_end, separator); spv_operand_desc entry = nullptr; - if (spvOperandTableNameLookup(env, operandTable, type, begin, end - begin, - &entry)) { - return SPV_ERROR_INVALID_TEXT; + if (auto error = spvOperandTableNameLookup(env, operandTable, type, begin, + end - begin, &entry)) { + return error; } value |= entry->value; |