switch from getTypeAtIndex to getElementType. It is non-virtual

and more idiomatic.

llvm-svn: 62705
This commit is contained in:
Chris Lattner 2009-01-21 19:21:36 +00:00
parent 78ecd4f61e
commit 1d09218b98
1 changed files with 1 additions and 1 deletions

View File

@ -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);