]> granicus.if.org Git - clang/commit
Perform Objective-C lifetime adjustments before comparing deduced lambda result types.
authorDouglas Gregor <dgregor@apple.com>
Thu, 1 Oct 2015 20:20:47 +0000 (20:20 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 1 Oct 2015 20:20:47 +0000 (20:20 +0000)
commit1eef93ff1d6bd164478e3565110f04b87c85b6f8
treec89acd4982faecbfd6c6549bdfddc18f5cf92327
parent6fd4426a8bb2808525cae8beae93306e8060f40d
Perform Objective-C lifetime adjustments before comparing deduced lambda result types.

Objective-C ARC lifetime qualifiers are dropped when canonicalizing
function types. Perform the same adjustment before comparing the
deduced result types of lambdas. Fixes rdar://problem/22344904.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249065 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ASTContext.h
lib/AST/ASTContext.cpp
lib/Sema/SemaLambda.cpp
lib/Sema/SemaStmt.cpp
test/SemaObjCXX/cxx1y-lambda.mm [new file with mode: 0644]