Updated spirv-tools.

This commit is contained in:
Бранимир Караџић
2019-10-19 22:32:06 -07:00
parent 0bac1a719c
commit b17a9c55d0
47 changed files with 1303 additions and 633 deletions

View File

@@ -781,9 +781,10 @@ spv_result_t spvBinaryParse(const spv_const_context context, void* user_data,
// TODO(dneto): This probably belongs in text.cpp since that's the only place
// that a spv_binary_t value is created.
void spvBinaryDestroy(spv_binary binary) {
if (!binary) return;
delete[] binary->code;
delete binary;
if (binary) {
if (binary->code) delete[] binary->code;
delete binary;
}
}
size_t spv_strnlen_s(const char* str, size_t strsz) {