[llvm] ef620c4 - [Support] Don't include <algorithm> in Hashing.h
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 16 09:06:10 PDT 2021
Author: Nico Weber
Date: 2021-04-16T12:04:53-04:00
New Revision: ef620c40f371e7e3269bd8bef57d069330baa355
URL: https://github.com/llvm/llvm-project/commit/ef620c40f371e7e3269bd8bef57d069330baa355
DIFF: https://github.com/llvm/llvm-project/commit/ef620c40f371e7e3269bd8bef57d069330baa355.diff
LOG: [Support] Don't include <algorithm> in Hashing.h
The include is for std::swap(), but that's in <utility> in C++11,
and Hashing.h already includes that.
Differential Revision: https://reviews.llvm.org/D100657
Added:
Modified:
llvm/include/llvm/ADT/Hashing.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ADT/Hashing.h b/llvm/include/llvm/ADT/Hashing.h
index e296c1c53ebd1..d29d1a4e27ee3 100644
--- a/llvm/include/llvm/ADT/Hashing.h
+++ b/llvm/include/llvm/ADT/Hashing.h
@@ -48,7 +48,6 @@
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/SwapByteOrder.h"
#include "llvm/Support/type_traits.h"
-#include <algorithm>
#include <cassert>
#include <cstring>
#include <string>
More information about the llvm-commits
mailing list