aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorJie Fu <jiefu@tencent.com>2025-06-29 14:24:41 +0800
committerJie Fu <jiefu@tencent.com>2025-06-29 14:24:41 +0800
commit842f4f711d3a2461ad7b27e8f7e30f5270a2ba47 (patch)
tree7cfecfe6d6869e23936cc75e7ed4d405b1ef8381 /llvm/lib/Transforms/Utils/LoopUtils.cpp
parent2661d595793c422fa98fa320cc6a7838d2c0e09c (diff)
downloadllvm-842f4f711d3a2461ad7b27e8f7e30f5270a2ba47.zip
llvm-842f4f711d3a2461ad7b27e8f7e30f5270a2ba47.tar.gz
llvm-842f4f711d3a2461ad7b27e8f7e30f5270a2ba47.tar.bz2
[Target] Prevent copying in loop variables (NFC)
/data/llvm-project/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp:2390: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/SystemZ/SystemZISelLowering.cpp:2390: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/SystemZ/SystemZISelLowering.cpp:2402: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/SystemZ/SystemZISelLowering.cpp:2402: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 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions