From 11f7e2f1459b09b1ece26ea785b6be77daa36923 Mon Sep 17 00:00:00 2001 From: Jake Stevens Date: Mon, 30 Jun 2025 00:17:09 +0000 Subject: [PATCH] [caffe][executorch] rename to avoid shadow in irange (#157107) Summary: D76832520 switched Executorch to use the caffe c10 headers. This copy contains a shadow, which is treated as an error for certain embedded compile flows. Simple rename to avoid. Test Plan: CI Rollback Plan: Differential Revision: D77446104 Pull Request resolved: https://github.com/pytorch/pytorch/pull/157107 Approved by: https://github.com/Skylion007 --- c10/util/irange.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c10/util/irange.h b/c10/util/irange.h index f53105100999..cc52d443ee5f 100644 --- a/c10/util/irange.h +++ b/c10/util/irange.h @@ -24,7 +24,7 @@ struct integer_iterator { using pointer = I*; using reference = I&; - explicit constexpr integer_iterator(I value) : value(value) {} + explicit constexpr integer_iterator(I val) : value(val) {} constexpr I operator*() const { return value;