ir_opt/a64_callback_config_pass: Mark locals as const where applicable

Makes our immutable state a little more explicit.
This commit is contained in:
Lioncash 2019-04-11 18:28:06 -04:00 committed by MerryMage
parent dc97977576
commit 1a45f35b9c

View file

@ -25,7 +25,7 @@ void A64CallbackConfigPass(IR::Block& block, const A64::UserConfig& conf) {
continue; continue;
} }
auto op = static_cast<A64::DataCacheOperation>(inst.GetArg(0).GetU64()); const auto op = static_cast<A64::DataCacheOperation>(inst.GetArg(0).GetU64());
if (op == A64::DataCacheOperation::ZeroByVA) { if (op == A64::DataCacheOperation::ZeroByVA) {
A64::IREmitter ir{block}; A64::IREmitter ir{block};
ir.SetInsertionPoint(&inst); ir.SetInsertionPoint(&inst);