Displaying 1 result from an estimated 1 matches for "93caaf91".
2011 Jan 07
1
[LLVMdev] Problem returning structures by value from C
I have a simple structure in my program:
struct pair { double value; int32_t type; };
Also I have 2 functions, which are called from LLVM code:
extern "C" void dump(pair s) {
unsigned char *p = reinterpret_cast<unsigned char *>(&s);
printf("#dump, %02x%02x%02x%02x %02x%02x%02x%02x %02x%02x%02x%02x\n",
p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7],