================
@@ -1646,8 +1646,8 @@ Sema::BuildCXXTypeConstructExpr(TypeSourceInfo *TInfo,
cast<InitListExpr>(Exprs[0])->getNumInits() == 0) {
return CXXFunctionalCastExpr::Create(
Context, Ty.getUnqualifiedType(), VK_PRValue, TInfo, CK_ToVoid,
- Exprs[0], /*Path=*/nullptr, CurFPFeatureOverrides(),
- Exprs[0]->getBeginLoc(), Exprs[0]->getEndLoc());
+ Exprs[0], /*Path=*/nullptr, CurFPFeatureOverrides(),
SourceLocation(),
+ Exprs[0]->getEndLoc());
}
----------------
IvyXu420 wrote:
For now, `int{}` is represented by CXXFunctionalCastExpr, while `int()` is
represented by CXXScalarValueInitExpr.
https://github.com/llvm/llvm-project/pull/228340
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits