================
@@ -4210,7 +4210,8 @@ ExprResult
Sema::ConvertMemberDefaultInitExpression(FieldDecl *FD,
? InitializationKind::CreateDirectList(InitExpr->getBeginLoc(),
InitExpr->getBeginLoc(),
InitExpr->getEndLoc())
- : InitializationKind::CreateCopy(InitExpr->getBeginLoc(), InitLoc);
+ : InitializationKind::CreateCopy(InitExpr->getBeginLoc(),
+ SourceLocation());
----------------
Fznamznon wrote:
I do see that an invalid source location is passed for
`InitializationKind::CreateCopy` multiple times around code base, but as I can
see from `InitializationKind::CreateCopy` signature the second `SourceLocation`
represents `=` which is exactly what we're trying to avoid... I wonder if the
fix should be made inside of `InitializationKind` because now this is all very
confusing.
https://github.com/llvm/llvm-project/pull/196260
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits