diff options
| author | gingerBill <bill@gingerbill.org> | 2020-11-15 21:19:08 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-11-15 21:19:08 +0000 |
| commit | db0bcbc4f47afbb69bb172401ead7f484eed6b6c (patch) | |
| tree | b3f24f82603c278bd97bac5b9624f29a54b93a55 /src/types.cpp | |
| parent | 0d6f5cec37e8815ff2e1c82575a05db98e4043d4 (diff) | |
Fix calling convention for new LLVM ABI, and change`PtrSet` index to be `u32` rather than `isize`
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/types.cpp b/src/types.cpp index 17dcedf45..1147beb33 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -897,6 +897,15 @@ bool is_calling_convention_none(ProcCallingConvention calling_convention) { return false; } +bool is_calling_convention_odin(ProcCallingConvention calling_convention) { + switch (calling_convention) { + case ProcCC_Odin: + case ProcCC_Contextless: + return true; + } + return false; +} + Type *alloc_type_tuple() { Type *t = alloc_type(Type_Tuple); return t; |