Fix a warning caused by -Wrange-loop-analysis
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
May I ask which cpp file you see the warning in? I just built clang and llvm, but I wasn't able to reproduce the warning. Thanks!
Comment Actions
It shows up in those source files that include SetOperations.h, for example: llvm/lib/CodeGen/MachineLoopInfo.cpp.
We found that this warning showed up in certain versions of clang, but not in some other versions. Since this is a legit warning, we thought it's better to fix it.