[clang] [Cygwin] Reduced number of inline elements of CallArgList. (PR #74977)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 9 22:54:52 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: εΎζζ Xu Chiheng (xu-chiheng)
<details>
<summary>Changes</summary>
This fix bootstraping on Cygwin, using GCC 13.2.0 as stage 0 compiler.
It seems that the size of CallArgList can't exceed an unknown limit.
---
Full diff: https://github.com/llvm/llvm-project/pull/74977.diff
1 Files Affected:
- (modified) clang/lib/CodeGen/CGCall.h (+1-1)
``````````diff
diff --git a/clang/lib/CodeGen/CGCall.h b/clang/lib/CodeGen/CGCall.h
index aee86a3242fd3f..5c181b8c00867f 100644
--- a/clang/lib/CodeGen/CGCall.h
+++ b/clang/lib/CodeGen/CGCall.h
@@ -254,7 +254,7 @@ struct CallArg {
/// CallArgList - Type for representing both the value and type of
/// arguments in a call.
-class CallArgList : public SmallVector<CallArg, 8> {
+class CallArgList : public SmallVector<CallArg, 2> {
public:
CallArgList() = default;
``````````
</details>
https://github.com/llvm/llvm-project/pull/74977
More information about the cfe-commits
mailing list