[llvm] abcaac1 - Add algorithm-include needed for std::max

Jeremy Morse via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 8 03:50:16 PDT 2024


Author: Jeremy Morse
Date: 2024-08-08T11:49:26+01:00
New Revision: abcaac1c49bec3ee4bfc95e7211ecb7aabfb49e3

URL: https://github.com/llvm/llvm-project/commit/abcaac1c49bec3ee4bfc95e7211ecb7aabfb49e3
DIFF: https://github.com/llvm/llvm-project/commit/abcaac1c49bec3ee4bfc95e7211ecb7aabfb49e3.diff

LOG: Add algorithm-include needed for std::max

Follow-up to rG719557269e9f5

Added: 
    

Modified: 
    llvm/include/llvm/ADT/SmallPtrSet.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/SmallPtrSet.h b/llvm/include/llvm/ADT/SmallPtrSet.h
index 4c85b1251bc40..78383f495b6a5 100644
--- a/llvm/include/llvm/ADT/SmallPtrSet.h
+++ b/llvm/include/llvm/ADT/SmallPtrSet.h
@@ -20,6 +20,7 @@
 #include "llvm/Support/MathExtras.h"
 #include "llvm/Support/ReverseIteration.h"
 #include "llvm/Support/type_traits.h"
+#include <algorithm>
 #include <cassert>
 #include <cstddef>
 #include <cstdlib>


        


More information about the llvm-commits mailing list