Skip to content

Commit 561fb7f

Browse files
committed
[NFC] Use llvm::SmallVector to workaround XL compiler problem on AIX
LLVM is recommending to use SmallVector (that is, omitting the N), in the absence of a well-motivated choice for the number of inlined elements N. However, this doesn't work well with XL compiler on AIX since some header(s) aren't properly picked up with it. We need to take a further look into the real issue underneath and fix it in a later patch. But currently we'd like to use this patch to unblock the build compiler issue first. Differential Revision: https://reviews.llvm.org/D98265
1 parent 351844e commit 561fb7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CGStmtOpenMP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1913,7 +1913,7 @@ static llvm::CallInst *
19131913
emitCapturedStmtCall(CodeGenFunction &ParentCGF, EmittedClosureTy Cap,
19141914
llvm::ArrayRef<llvm::Value *> Args) {
19151915
// Append the closure context to the argument.
1916-
SmallVector<llvm::Value *> EffectiveArgs;
1916+
llvm::SmallVector<llvm::Value *> EffectiveArgs;
19171917
EffectiveArgs.reserve(Args.size() + 1);
19181918
llvm::append_range(EffectiveArgs, Args);
19191919
EffectiveArgs.push_back(Cap.second);

0 commit comments

Comments
 (0)