1
0
Fork 0
mirror of https://git.suyu.dev/suyu/sirit.git synced 2024-12-22 20:22:02 +00:00

Rename bad overload Add to Sink

This commit is contained in:
ReinUsesLisp 2018-10-23 04:52:07 -03:00
parent 4da63b4ed5
commit 951ef21f17
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ void Op::Write(Stream& stream) const {
}
}
void Op::Add(Operand* operand) {
void Op::Sink(Operand* operand) {
Add(static_cast<const Operand*>(operand));
operand_store.push_back(std::unique_ptr<Operand>(operand));
}

View file

@ -27,7 +27,7 @@ class Op : public Operand {
void Write(Stream& stream) const;
void Add(Operand* operand);
void Sink(Operand* operand);
void Add(const Operand* operand);