mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2024-12-23 04:32:04 +00:00
Rename bad overload Add to Sink
This commit is contained in:
parent
4da63b4ed5
commit
951ef21f17
2 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
|
|
2
src/op.h
2
src/op.h
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue