Example of an error:
spirv-tools/source/validate_cfg.cpp:516:45: error: chosen constructor is
explicit in copy-initialization:
_.current_function().RegisterBlockEnd({}, opcode);
void RegisterBranchInstruction(SpvOp branch_instruction);
/// Adds @p next BasicBlocks as successors of this BasicBlock
- void RegisterSuccessors(const std::vector<BasicBlock*>& next = {});
+ void RegisterSuccessors(const std::vector<BasicBlock*>& next = std::vector<BasicBlock*>());
/// Returns true if the id of the BasicBlock matches
bool operator==(const BasicBlock& other) const { return other.id_ == id_; }
public:
Construct(ConstructType type, BasicBlock* dominator,
BasicBlock* exit = nullptr,
- std::vector<Construct*> constructs = {});
+ std::vector<Construct*> constructs = std::vector<Construct*>());
/// Returns the type of the construct
ConstructType type() const;
case SpvOpReturn:
case SpvOpReturnValue:
case SpvOpUnreachable:
- _.current_function().RegisterBlockEnd({}, opcode);
+ _.current_function().RegisterBlockEnd(vector<uint32_t>(), opcode);
break;
default:
break;