-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CWriter doesn't support zero arg vararg functions #428
Comments
It's important to note that no LLVM code produced by the C or C++ frontends can
W.R.T case #2, the dead argument elimination pass (which is the only one which Because of this, I'm reducing the severity of the bug to "minor". -Chris |
I'm reducing this to 'enhancement', because there is no way to implement this -Chris |
Changing all of these bugs who do not have people looking at them to be assigned If I stole your bug, and you still want it, feel free to take ownership back. -Chris |
2 similar comments
Changing all of these bugs who do not have people looking at them to be assigned If I stole your bug, and you still want it, feel free to take ownership back. -Chris |
Changing all of these bugs who do not have people looking at them to be assigned If I stole your bug, and you still want it, feel free to take ownership back. -Chris |
I'm closing this bug, as there is no way to fix it. This is just a limitation of C. -Chris |
Compilation of the following test ``` void foo6(A* a1) { A a2 = (*a1); } ``` fails with. ``` NYI UNREACHABLE executed at /home/huawei/cir/repo/llvm-project/clang/lib/CIR/CodeGen/CIRGenExprAgg.cpp:175! ``` Commit adds required visitor and fixes the issue.
Compilation of the following test ``` void foo6(A* a1) { A a2 = (*a1); } ``` fails with. ``` NYI UNREACHABLE executed at /home/huawei/cir/repo/llvm-project/clang/lib/CIR/CodeGen/CIRGenExprAgg.cpp:175! ``` Commit adds required visitor and fixes the issue.
Compilation of the following test ``` void foo6(A* a1) { A a2 = (*a1); } ``` fails with. ``` NYI UNREACHABLE executed at /home/huawei/cir/repo/llvm-project/clang/lib/CIR/CodeGen/CIRGenExprAgg.cpp:175! ``` Commit adds required visitor and fixes the issue.
Extended Description
The following is a legal LLVM function, but it causes the CWriter to crash. It
is not clear how to transform this into legal C code.
declare sbyte* %llvm.va_start()
declare void %llvm.va_end(sbyte*)
void %test(...) {
%P = call sbyte* %llvm.va_start()
call void %llvm.va_end(sbyte* %P)
ret void
}
The text was updated successfully, but these errors were encountered: