mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-29 10:30:04 +02:00
Convert struct arg to integer when passing inreg to make sure LLVM doesn't
ignore the attribute!
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
|
||||
// llvm
|
||||
#include "../ir/irtype.h"
|
||||
namespace llvm { class Type; }
|
||||
|
||||
struct Scope;
|
||||
struct Identifier;
|
||||
@@ -438,7 +439,8 @@ struct TypeFunction : Type
|
||||
bool retInPtr;
|
||||
bool usesThis;
|
||||
bool usesNest;
|
||||
bool structInregArg;
|
||||
// when the last arg is a struct and passed in EAX, this holds its real type
|
||||
const llvm::Type* structInregArg;
|
||||
unsigned retAttrs;
|
||||
unsigned thisAttrs; // also used for nest
|
||||
// parameter index in the llvm function that contains the first not-implicit arg
|
||||
|
||||
Reference in New Issue
Block a user