From: Chris Lattner Date: Wed, 21 Jan 2009 19:21:36 +0000 (+0000) Subject: switch from getTypeAtIndex to getElementType. It is non-virtual X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f33e0afa9ba35e5398a552a5a4fec42ff2aee52;p=clang 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 9c83b75b2a..ae9d86137c 100644 --- a/lib/CodeGen/CGObjCGNU.cpp +++ b/lib/CodeGen/CGObjCGNU.cpp @@ -799,7 +799,7 @@ llvm::Function *CGObjCGNU::ModuleInitFunction() { return NULL; const llvm::StructType *SelStructTy = - cast(SelectorTy->getTypeAtIndex(0U)); + cast(SelectorTy->getElementType()); // Name the ObjC types to make the IR a bit easier to read TheModule.addTypeName(".objc_selector", SelectorTy);