mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-14 07:09:50 +03:00
Avoid a few llvm::Type::getPointerElementType() usages
This commit is contained in:
parent
8527b3f9c8
commit
e72c58d2c3
2 changed files with 2 additions and 3 deletions
|
@ -144,7 +144,7 @@ void RTTIBuilder::push_funcptr(FuncDeclaration *fd, Type *castto) {
|
|||
}
|
||||
|
||||
void RTTIBuilder::finalize(LLGlobalVariable *gvar) {
|
||||
LLStructType *st = isaStruct(gvar->getType()->getPointerElementType());
|
||||
LLStructType *st = isaStruct(gvar->getValueType());
|
||||
assert(st);
|
||||
|
||||
// finalize the type if opaque (e.g., for ModuleInfos)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue