diff options
Diffstat (limited to 'src/insts/debug.cpp')
-rw-r--r-- | src/insts/debug.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/insts/debug.cpp b/src/insts/debug.cpp index e12b61c..5e7ea0f 100644 --- a/src/insts/debug.cpp +++ b/src/insts/debug.cpp @@ -9,11 +9,12 @@ namespace Sirit { -void Module::Name(Ref target, const std::string& name) { +Ref Module::Name(Ref target, const std::string& name) { Op* op{new Op(spv::Op::OpName)}; op->Add(target); op->Add(name); debug.push_back(std::unique_ptr<Op>(op)); + return target; } } // namespace Sirit |