mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-12-28 10:41:04 +00:00
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:
parent
d792ccd1ee
commit
f37e8d74e7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user