switch from getTypeAtIndex to getElementType. It is non-virtual
and more idiomatic.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62705 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp
index 9c83b75..ae9d861 100644
--- a/lib/CodeGen/CGObjCGNU.cpp
+++ b/lib/CodeGen/CGObjCGNU.cpp
@@ -799,7 +799,7 @@
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);