mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 01:23:14 +01:00
[svn r209] Fixed: exotic array to pointer casts were broken.
Changed: classes now have opaque vtables.
This commit is contained in:
@@ -1428,6 +1428,11 @@ const llvm::PointerType* getPtrToType(const llvm::Type* t)
|
||||
return llvm::PointerType::get(t, 0);
|
||||
}
|
||||
|
||||
const llvm::PointerType* getVoidPtrType()
|
||||
{
|
||||
return getPtrToType(llvm::Type::Int8Ty);
|
||||
}
|
||||
|
||||
llvm::ConstantPointerNull* getNullPtr(const llvm::Type* t)
|
||||
{
|
||||
const llvm::PointerType* pt = llvm::cast<llvm::PointerType>(t);
|
||||
|
||||
Reference in New Issue
Block a user