From 26bf1ad8eb482b1d0c590350453a2947c00b2c44 Mon Sep 17 00:00:00 2001 From: Volodymyr Kysenko Date: Tue, 26 Oct 2021 02:31:31 +0000 Subject: [PATCH] Specify template parameter of ScopedValue --- src/ClampUnsafeAccesses.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ClampUnsafeAccesses.cpp b/src/ClampUnsafeAccesses.cpp index c971370454d6..f4f25decafe1 100644 --- a/src/ClampUnsafeAccesses.cpp +++ b/src/ClampUnsafeAccesses.cpp @@ -50,7 +50,7 @@ struct ClampUnsafeAccesses : IRMutator { } } - ScopedValue s(is_inside_indexing, true); + ScopedValue s(is_inside_indexing, true); return IRMutator::visit(call); } @@ -60,7 +60,7 @@ struct ClampUnsafeAccesses : IRMutator { ScopedBinding binding(let_var_inside_indexing, let->name, false); Body body = mutate(let->body); - ScopedValue s(is_inside_indexing, is_inside_indexing || let_var_inside_indexing.get(let->name)); + ScopedValue s(is_inside_indexing, is_inside_indexing || let_var_inside_indexing.get(let->name)); Expr value = mutate(let->value); return L::make(let->name, std::move(value), std::move(body));