We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Example:
#include <stdarg.h> void escape(int); void simple_va(const char* fmt, ...) { va_list args; va_start(args, fmt); int i = va_arg(args, int); escape(i); va_end(args); } void simple_va2(const char* fmt, ...) { va_list args; va_start(args, fmt); int i = va_arg(args, int); escape(i); va_end(args); }
Clang emits (https://godbolt.org/z/C54W53):
; Function Attrs: minsize optsize uwtable define dso_local void @_Z9simple_vaPKcz(i8* nocapture readnone, ...) local_unnamed_addr #3 { tail call void (i8*, ...) @_Z10simple_va2PKcz(i8* nocapture readnone %0) #3 ret void }
The text was updated successfully, but these errors were encountered:
I've disabled merging in this case in r351411.
Sorry, something went wrong.
Might be better to move the check into isThunkProfitable (with an appropriate rename), as emitting an alias should still be fine for this case.
Thanks for pointing this out. I've sent out a patch: https://reviews.llvm.org/D56865
IIUC this has been fixed in b537b94. Closing the issue, but please reopen the issue if this is incorrect.
No branches or pull requests
Extended Description
Example:
Clang emits (https://godbolt.org/z/C54W53):
The text was updated successfully, but these errors were encountered: