The include is for std::swap(), but that's in <utility> in C++11,
and Hashing.h already includes that.
Details
- Reviewers
hans - Commits
- rGef620c40f371: [Support] Don't include <algorithm> in Hashing.h
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
This broke the Windows MLIR buildbot, because algorithm is required for std::min in MSVC.
https://lab.llvm.org/buildbot/#/builders/13/builds/6985/steps/6/logs/stdio
FYI this has caused widespread redness in the bots. The fixes seem to be straightforward so I do not think we need to revert.
Actually, I take it back that we do not need to revert. We need to revert because std::rotate in used in Hashing.h.
Thanks for the revert, and sorry about missing this.
(It built fine locally, but that's very c++ standard-lib dependent of course.)
(For this one, the Right Fix would be to add the include in APInt.h , or arguably undo parts of http://reviews.llvm.org/rG405165210b0b2f95e08d84ffcaab534fbd022fde , but since Hashing.h does use std::rotate() it needs to keep the include.)