Skip to content
Snippets Groups Projects
Commit 0cb00023 authored by Adrian Prantl's avatar Adrian Prantl
Browse files

Comment and cleanup.

rdar://problem/13359718

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182524 91177308-0d34-0410-b5e6-96231b3b80d8
parent 34bd3331
No related branches found
No related tags found
No related merge requests found
......@@ -2256,11 +2256,13 @@ llvm::DIType CGDebugInfo::getOrCreateFunctionType(const Decl *D,
SmallVector<llvm::Value *, 16> Elts;
// First element is always return type. For 'void' functions it is NULL.
QualType ResultTy =
OMethod->getResultType() == CGM.getContext().getObjCInstanceType()
? CGM.getContext().getPointerType(
QualType(OMethod->getClassInterface()->getTypeForDecl(), 0))
: OMethod->getResultType();
QualType ResultTy = OMethod->getResultType();
// Replace the instancetype keyword with the actual type.
if (ResultTy == CGM.getContext().getObjCInstanceType())
ResultTy = CGM.getContext().getPointerType(
QualType(OMethod->getClassInterface()->getTypeForDecl(), 0));
Elts.push_back(getOrCreateType(ResultTy, F));
// "self" pointer is always first argument.
QualType SelfDeclTy = OMethod->getSelfDecl()->getType();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment