diff options
-rw-r--r-- | lib/CodeGen/CGObjCGNU.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<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); |