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 llvm-svn: 375313
8 lines
218 B
C++
8 lines
218 B
C++
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-unknown-linux -std=c++17 | FileCheck %s
|
|
|
|
double a(double) noexcept;
|
|
int b(double (&)(double));
|
|
|
|
// CHECK: call i32 @_Z1bRFddE(double (double)* @_Z1ad)
|
|
int c = b(a);
|