From d07c5bc14edbe071ee7b4f47f174780e95e451aa Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 15 Nov 2020 13:55:18 +0100 Subject: Simplify Asm construction --- asm/intel64/trivials.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'asm/intel64/trivials.cpp') diff --git a/asm/intel64/trivials.cpp b/asm/intel64/trivials.cpp index 094d27f..eb1bbb8 100644 --- a/asm/intel64/trivials.cpp +++ b/asm/intel64/trivials.cpp @@ -9,13 +9,13 @@ Op_syscall::Op_syscall(): OpSimple({ 0x0F, 0x05 }) {} namespace { bool registered { - registerOp("nop", [](Asm::Args& args) -> std::shared_ptr{ + registerOp("nop", [](const Asm::Args& args) -> std::shared_ptr{ return std::make_shared(); }) && - registerOp("ret", [](Asm::Args& args) -> std::shared_ptr{ + registerOp("ret", [](const Asm::Args& args) -> std::shared_ptr{ return std::make_shared(); }) && - registerOp("syscall", [](Asm::Args& args) -> std::shared_ptr{ + registerOp("syscall", [](const Asm::Args& args) -> std::shared_ptr{ return std::make_shared(); }) }; -- cgit v1.2.3