diff options
author | ReinUsesLisp <[email protected]> | 2018-08-31 04:55:01 -0300 |
---|---|---|
committer | ReinUsesLisp <[email protected]> | 2018-08-31 04:55:01 -0300 |
commit | 45555c0e570b24409e19c9cb0cbfb0866f897d3d (patch) | |
tree | 83ea6402eaa8d0c5f460b129baa462c4545ee224 /src/insts/debug.cpp | |
parent | 4fe98c2902d514cd2ed220301618b468e754bcc7 (diff) | |
download | sirit-45555c0e570b24409e19c9cb0cbfb0866f897d3d.tar.gz sirit-45555c0e570b24409e19c9cb0cbfb0866f897d3d.zip |
OpName returns its target
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 |