summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authordan sinclair <dj2@everburning.com>2018-08-01 11:58:37 -0400
committerGitHub <noreply@github.com>2018-08-01 11:58:37 -0400
commitf37e8d74e7f3a4d24dbc0fd3cd0f505429e4caf4 (patch)
treef6bd89b27cebfccca368aefeb6d2bfd17581783f /source
parentd792ccd1ee1443aff915b1edcef5f579aa1031a6 (diff)
Update diag() call in validate_interface. (#1769)
This CL upldates validate_interface to pass the instruction to the diag() method.
Diffstat (limited to 'source')
-rw-r--r--source/val/validate_interfaces.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/val/validate_interfaces.cpp b/source/val/validate_interfaces.cpp
index 59ee4b61..354e4be4 100644
--- a/source/val/validate_interfaces.cpp
+++ b/source/val/validate_interfaces.cpp
@@ -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