Replace "auto const" with "auto"

This commit is contained in:
ReinUsesLisp 2018-10-23 05:05:40 -03:00
parent f581df0935
commit 6a2d1da742
7 changed files with 23 additions and 23 deletions

View file

@ -19,13 +19,13 @@ Ref Module::ConstantFalse(Ref result_type) {
}
Ref Module::Constant(Ref result_type, Operand* literal) {
auto const op{new Op(spv::Op::OpConstant, bound, result_type)};
auto op{new Op(spv::Op::OpConstant, bound, result_type)};
op->Add(literal);
return AddDeclaration(op);
}
Ref Module::ConstantComposite(Ref result_type, const std::vector<Ref>& constituents) {
auto const op{new Op(spv::Op::OpConstantComposite, bound, result_type)};
auto op{new Op(spv::Op::OpConstantComposite, bound, result_type)};
op->Add(constituents);
return AddDeclaration(op);
}
@ -34,7 +34,7 @@ Ref Module::ConstantSampler(Ref result_type, spv::SamplerAddressingMode addressi
bool normalized, spv::SamplerFilterMode filter_mode) {
AddCapability(spv::Capability::LiteralSampler);
AddCapability(spv::Capability::Kernel);
auto const op{new Op(spv::Op::OpConstantSampler, bound, result_type)};
auto op{new Op(spv::Op::OpConstantSampler, bound, result_type)};
AddEnum(op, addressing_mode);
op->Add(normalized ? 1 : 0);
AddEnum(op, filter_mode);