Skip to content

Commit 1934e4a

Browse files
committed
[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.
1 parent 06f04b2 commit 1934e4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Frontend/OpenMP/ConstructCompositionT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ template <typename C> void ConstructCompositionT<C>::mergeDSA() {
297297
};
298298

299299
// Use ordered containers to avoid non-deterministic output.
300-
llvm::SmallVector<std::pair<ObjectTy, int>> objectDsa;
300+
llvm::SmallVector<std::pair<ObjectTy, int>, 8> objectDsa;
301301

302302
auto getDsa = [&](const ObjectTy &object) -> std::pair<ObjectTy, int> & {
303303
auto found = llvm::find_if(objectDsa, [&](std::pair<ObjectTy, int> &p) {

0 commit comments

Comments
 (0)