Update diag() call in validate_interface. (#1769)

This CL upldates validate_interface to pass the instruction to the
diag() method.
This commit is contained in:
dan sinclair 2018-08-01 11:58:37 -04:00 committed by GitHub
parent d792ccd1ee
commit f37e8d74e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,7 @@ spv_result_t check_interface_variable(ValidationState_t& _, Instruction* var) {
}
}
if (!found) {
return _.diag(SPV_ERROR_INVALID_ID)
return _.diag(SPV_ERROR_INVALID_ID, var)
<< (var->word(3u) == SpvStorageClassInput ? "Input" : "Output")
<< " variable id <" << var->id() << "> is used by entry point '"
<< desc.name << "' id <" << id