Varargs only follow C calling conventions.
Unfortunately, I do not have a test case for this. I just saw this while reading the code.
Differential D45924
Set calling convention for varargs hiraditya on Apr 21 2018, 6:46 AM. Authored by
Details
Diff Detail Event TimelineComment Actions What branch is this patch against? Trunk doesn't have a file named MergeSimilarFunctions.cpp. Comment Actions This is not in trunk I guess, I borrowed this pass from: https://reviews.llvm.org/D22051 |