Fix build by renaming ValidationState_t constructor argument.

The `diag` argument shadows the `diag` method, so the strict build fails.
This commit is contained in:
Dejan Mircevski 2016-01-13 09:52:23 -05:00 committed by David Neto
parent c741385976
commit 433285626e
2 changed files with 3 additions and 3 deletions

View File

@ -116,8 +116,8 @@ const vector<vector<SpvOp>>& GetModuleOrder() {
namespace libspirv {
ValidationState_t::ValidationState_t(spv_diagnostic* diag, uint32_t options)
: diagnostic_(diag),
ValidationState_t::ValidationState_t(spv_diagnostic* diagnostic, uint32_t options)
: diagnostic_(diagnostic),
instruction_counter_(0),
defined_ids_{},
unresolved_forward_ids_{},

View File

@ -152,7 +152,7 @@ class Functions {
class ValidationState_t {
public:
ValidationState_t(spv_diagnostic* diag, uint32_t options);
ValidationState_t(spv_diagnostic* diagnostic, uint32_t options);
// Defines the \p id for the module
spv_result_t defineId(uint32_t id);