mirror of
https://github.com/azahar-emu/sirit.git
synced 2026-03-20 19:21:03 +01:00
Use some C++17 features
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
namespace Sirit {
|
||||
|
||||
Ref Module::Function(Ref result_type, spv::FunctionControlMask function_control, Ref function_type) {
|
||||
Op* op{new Op{spv::Op::OpFunction, bound++, result_type}};
|
||||
auto const op{new Op{spv::Op::OpFunction, bound++, result_type}};
|
||||
op->Add(static_cast<u32>(function_control));
|
||||
op->Add(function_type);
|
||||
return AddCode(op);
|
||||
|
||||
Reference in New Issue
Block a user