mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-02-24 16:09:38 +00:00
microinstruction: Arguments of Inst::Use and Inst::UndoUse should be const
This commit is contained in:
@@ -312,7 +312,7 @@ void Inst::ReplaceUsesWith(Value replacement) {
|
||||
args[0] = replacement;
|
||||
}
|
||||
|
||||
void Inst::Use(Value& value) {
|
||||
void Inst::Use(const Value& value) {
|
||||
value.GetInst()->use_count++;
|
||||
|
||||
switch (op){
|
||||
@@ -333,7 +333,7 @@ void Inst::Use(Value& value) {
|
||||
}
|
||||
}
|
||||
|
||||
void Inst::UndoUse(Value& value) {
|
||||
void Inst::UndoUse(const Value& value) {
|
||||
value.GetInst()->use_count--;
|
||||
|
||||
switch (op){
|
||||
|
||||
Reference in New Issue
Block a user