http://llvm.org/bugs/show_bug.cgi?id=11770
Bug #: 11770
Summary: missing sret in some cases
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Compiling
typedef struct
{
long long int quot;
long long int rem;
} lldiv_t;
#ifdef foo
lldiv_t lldiv(long long int num) __attribute__ ((weak, alias ("_lldiv")));
#endif
lldiv_t _lldiv(long long num)
{
}
without -Dfoo produces
define void @_lldiv(%struct.lldiv_t* noalias nocapture sret %agg.result,....
and with -Dfoo:
define void @_lldiv(%struct.lldiv_t* noalias nocapture %agg.result,...
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs