-
Notifications
You must be signed in to change notification settings - Fork 98
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
clang crashed when handling va_list #977
Comments
Thanks for the report! #974 might possibly be related, but |
Looking into it a bit more, I think |
emmm. I find code here clangir/clang/lib/CIR/Dialect/Transforms/TargetLowering/Targets/LoweringPrepareItaniumCXXABI.cpp Lines 167 to 173 in 199228d
|
Yup, but that code goes back to #573, so it's been like this since May as far as I can tell. In other words, this is still something we need to fix, but I don't think it's related to the recent calling convention lowering work. |
FWIW, I disabled the new callconv stuff in 6cf9c5d |
I am going to take the issue |
test case
build with
clang -c -fclangir reg.c -Xclang -emit-cir -o reg.cir
, then crashedthe clang is built with 8311717
also crashed with
clang -c -fclangir -fno-clangir-call-conv-lowering reg.c -Xclang -emit-cir -o reg.cir
if remove
lemon_vsprintf(str, format, ap);
in functionlemon_sprintf
, it works.NOTE: this case is simplified from building sqlite https://github.com/sqlite/sqlite , the original file is https://github.com/sqlite/sqlite/blob/master/tool/lemon.c
The text was updated successfully, but these errors were encountered: