[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
This commit is contained in:
Jake Stevens
2025-06-30 00:17:09 +00:00
committed by PyTorch MergeBot
parent 018e9826a2
commit 11f7e2f145

View File

@ -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;