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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Sema/SemaInit.cpp | ||
---|---|---|
4745 | Is this a qualification conversion though? The standard lists it "function pointer conversion". | |
clang/test/CodeGenCXX/implicit-function-conversion.cpp | ||
6–7 | Wouldn't it make slightly more sense to check the AST for a specific ImplicitCastExpr? This test would have passed before your change when assertions are turned off, if I'm not mistaken. |
Is this a qualification conversion though? The standard lists it "function pointer conversion".