forked from OSchip/llvm-project
switch from getTypeAtIndex to getElementType. It is non-virtual
and more idiomatic. llvm-svn: 62705
This commit is contained in:
parent
78ecd4f61e
commit
1d09218b98
|
@ -799,7 +799,7 @@ llvm::Function *CGObjCGNU::ModuleInitFunction() {
|
|||
return NULL;
|
||||
|
||||
const llvm::StructType *SelStructTy =
|
||||
cast<llvm::StructType>(SelectorTy->getTypeAtIndex(0U));
|
||||
cast<llvm::StructType>(SelectorTy->getElementType());
|
||||
|
||||
// Name the ObjC types to make the IR a bit easier to read
|
||||
TheModule.addTypeName(".objc_selector", SelectorTy);
|
||||
|
|
Loading…
Reference in New Issue