mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-11-30 12:53:51 +01:00
[svn r74] Fixed passing types with different alignment to D-style variadic functions.
Fixed casting integer to pointer.
This commit is contained in:
@@ -1287,6 +1287,9 @@ elem* CastExp::toElem(IRState* p)
|
||||
e->val = new llvm::SIToFPInst(u->getValue(), tolltype, "tmp", p->scopebb());
|
||||
}
|
||||
}
|
||||
else if (totype->ty == Tpointer) {
|
||||
e->val = p->ir->CreateIntToPtr(u->getValue(), tolltype, "tmp");
|
||||
}
|
||||
else {
|
||||
assert(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user