[CodeGen] Fix an assert in CodeGenFunction::EmitFunctionEpilog
The assert is triggered because isObjCRetainableType() is called on the
canonicalized return type that has been stripped of the typedefs and
attributes attached to it. To fix this assert, this commit gets the
original return type from CurCodeDecl or BlockInfo and uses it instead
of the canoicalized type.
rdar://problem/
24470031
Differential Revision: http://reviews.llvm.org/D16914
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261151
91177308-0d34-0410-b5e6-
96231b3b80d8