[clang] [CIR] Implement__builtin_va_arg (PR #153834)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 15 10:06:30 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions c,cpp,h -- clang/test/CIR/CodeGen/var_arg.c clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp clang/lib/CIR/CodeGen/CIRGenExpr.cpp clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp clang/lib/CIR/CodeGen/CIRGenFunction.cpp clang/lib/CIR/CodeGen/CIRGenFunction.h clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp b/clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
index 7fb5c020d..730f3a251 100644
--- a/clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
@@ -388,7 +388,8 @@ public:
QualType Ty = ve->getType();
if (Ty->isVariablyModifiedType()) {
- cgf.cgm.errorNYI(ve->getSourceRange(), "variably modified types in varargs");
+ cgf.cgm.errorNYI(ve->getSourceRange(),
+ "variably modified types in varargs");
}
Address argValue = Address::invalid();
``````````
</details>
https://github.com/llvm/llvm-project/pull/153834
More information about the cfe-commits
mailing list