[llvm] 1934e4a - [flang][OpenMP] Add explicit N to SmallVector to avoid size error
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Mon May 13 08:43:22 PDT 2024
Author: Krzysztof Parzyszek
Date: 2024-05-13T10:43:16-05:00
New Revision: 1934e4afd6276cd2440357b788d7efe6a4abdebe
URL: https://github.com/llvm/llvm-project/commit/1934e4afd6276cd2440357b788d7efe6a4abdebe
DIFF: https://github.com/llvm/llvm-project/commit/1934e4afd6276cd2440357b788d7efe6a4abdebe.diff
LOG: [flang][OpenMP] Add explicit N to SmallVector to avoid size error
This fixes https://lab.llvm.org/buildbot/#/builders/268/builds/13925,
which somehow doesn't show in any of my local builds.
Added:
Modified:
llvm/include/llvm/Frontend/OpenMP/ConstructCompositionT.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Frontend/OpenMP/ConstructCompositionT.h b/llvm/include/llvm/Frontend/OpenMP/ConstructCompositionT.h
index edb65ed6d3240..9dcb115a0c514 100644
--- a/llvm/include/llvm/Frontend/OpenMP/ConstructCompositionT.h
+++ b/llvm/include/llvm/Frontend/OpenMP/ConstructCompositionT.h
@@ -297,7 +297,7 @@ template <typename C> void ConstructCompositionT<C>::mergeDSA() {
};
// Use ordered containers to avoid non-deterministic output.
- llvm::SmallVector<std::pair<ObjectTy, int>> objectDsa;
+ llvm::SmallVector<std::pair<ObjectTy, int>, 8> objectDsa;
auto getDsa = [&](const ObjectTy &object) -> std::pair<ObjectTy, int> & {
auto found = llvm::find_if(objectDsa, [&](std::pair<ObjectTy, int> &p) {
More information about the llvm-commits
mailing list