]> granicus.if.org Git - clang/commit
Sema: Create a no-op implicit cast for lvalue function conversions.
authorPeter Collingbourne <peter@pcc.me.uk>
Sat, 19 Oct 2019 00:34:54 +0000 (00:34 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Sat, 19 Oct 2019 00:34:54 +0000 (00:34 +0000)
commitb300d3566a7bb528c0ca2994a74dcab46f50eb97
treef397399f29ec1c40c18d88303ac917c4c91c180b
parentae6164e81a997145838d60883a373e79de1b8e78
Sema: Create a no-op implicit cast for lvalue function conversions.

This fixes an assertion failure in the case where an implicit conversion for a
function call involves an lvalue function conversion, and makes the AST for
initializations involving implicit lvalue function conversions more accurate.

Differential Revision: https://reviews.llvm.org/D66437

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@375313 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/SemaCast.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaInit.cpp
lib/Sema/SemaOverload.cpp
test/CodeGenCXX/implicit-function-conversion.cpp [new file with mode: 0644]