mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-02 08:01:11 +03:00
Added type param to DVarValue as DMD sometimes overrides the type of the VarDeclaration.
Added support for align(1)/packed structs, other alignments are still ignored. Fixed some problems with accessing lazy arguments.
This commit is contained in:
parent
3b21ae25be
commit
905ca019dd
11 changed files with 43 additions and 32 deletions
|
@ -22,8 +22,8 @@
|
|||
|
||||
const llvm::FunctionType* DtoFunctionType(Type* type, const LLType* thistype, bool ismain)
|
||||
{
|
||||
assert(type->ty == Tfunction);
|
||||
TypeFunction* f = (TypeFunction*)type;
|
||||
assert(f != 0);
|
||||
|
||||
if (type->ir.type != NULL) {
|
||||
return llvm::cast<llvm::FunctionType>(type->ir.type->get());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue