OpName returns its target

This commit is contained in:
ReinUsesLisp 2018-08-31 04:55:01 -03:00
parent 4fe98c2902
commit 45555c0e57
3 changed files with 6 additions and 5 deletions

View file

@ -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