diff options
author | Jie Fu <jiefu@tencent.com> | 2025-06-30 15:50:04 +0800 |
---|---|---|
committer | Jie Fu <jiefu@tencent.com> | 2025-06-30 15:50:56 +0800 |
commit | 834c410d9df313fde9160b23e6e1c6cf95bed8a3 (patch) | |
tree | cd53ab08e713dae48254e885f5310863145f21d1 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 8602204d9fc483c7c58fa4e4d422d9bffb4e4e95 (diff) | |
download | llvm-834c410d9df313fde9160b23e6e1c6cf95bed8a3.zip llvm-834c410d9df313fde9160b23e6e1c6cf95bed8a3.tar.gz llvm-834c410d9df313fde9160b23e6e1c6cf95bed8a3.tar.bz2 |
[Target] Prevent copying in loop variables (NFC)
/data/llvm-project/llvm/lib/Target/Lanai/LanaiISelLowering.cpp:715:19: error: loop variable '[Reg, N]' creates a copy from type 'std::pair<unsigned int, llvm::SDValue> const' [-Werror,-Wrange-loop-construct]
for (const auto [Reg, N] : RegsToPass) {
^
/data/llvm-project/llvm/lib/Target/Lanai/LanaiISelLowering.cpp:715:8: note: use reference type 'std::pair<unsigned int, llvm::SDValue> const &' to prevent copying
for (const auto [Reg, N] : RegsToPass) {
^~~~~~~~~~~~~~~~~~~~~
&
/data/llvm-project/llvm/lib/Target/Lanai/LanaiISelLowering.cpp:747:19: error: loop variable '[Reg, N]' creates a copy from type 'std::pair<unsigned int, llvm::SDValue> const' [-Werror,-Wrange-loop-construct]
for (const auto [Reg, N] : RegsToPass)
^
/data/llvm-project/llvm/lib/Target/Lanai/LanaiISelLowering.cpp:747:8: note: use reference type 'std::pair<unsigned int, llvm::SDValue> const &' to prevent copying
for (const auto [Reg, N] : RegsToPass)
^~~~~~~~~~~~~~~~~~~~~
&
2 errors generated.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions