diff options
author | dan sinclair <dj2@everburning.com> | 2018-08-01 13:13:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-01 13:13:44 -0400 |
commit | ab061afc838fb8547c7c8aaebde61a8eac228d04 (patch) | |
tree | e567ef59ac5b9974cfbd2e78cebbe8576017bb1d | |
parent | 78335c927a04001fda30aff5a229d83384855605 (diff) |
Update diag() calls in validate_type_unique. (#1775)
This CL updates the diag() calls in validate_type_unique to pass the
relevant instruction.
-rw-r--r-- | source/val/validate_type_unique.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/val/validate_type_unique.cpp b/source/val/validate_type_unique.cpp index 1bf6a75e..1f4de105 100644 --- a/source/val/validate_type_unique.cpp +++ b/source/val/validate_type_unique.cpp @@ -43,7 +43,7 @@ spv_result_t TypeUniquePass(ValidationState_t& _, const Instruction* inst) { } if (!_.RegisterUniqueTypeDeclaration(inst)) { - return _.diag(SPV_ERROR_INVALID_DATA) + return _.diag(SPV_ERROR_INVALID_DATA, inst) << "Duplicate non-aggregate type declarations are not allowed." << " Opcode: " << spvOpcodeString(SpvOp(inst->opcode())) << " id: " << inst->id(); |