Annotations return target and add OpUMod

This commit is contained in:
ReinUsesLisp 2018-11-06 04:47:40 -03:00
parent 587f1dc9f5
commit 8f17ad84ba
4 changed files with 10 additions and 5 deletions

View file

@ -18,7 +18,8 @@ Id Module::Decorate(Id target, spv::Decoration decoration,
op->Add(target);
op->Add(static_cast<u32>(decoration));
op->Add(literals);
return AddAnnotation(std::move(op));
AddAnnotation(std::move(op));
return target;
}
Id Module::MemberDecorate(Id structure_type, Literal member,
@ -29,7 +30,8 @@ Id Module::MemberDecorate(Id structure_type, Literal member,
op->Add(member);
op->Add(static_cast<u32>(decoration));
op->Add(literals);
return AddAnnotation(std::move(op));
AddAnnotation(std::move(op));
return structure_type;
}
} // namespace Sirit