================
@@ -1340,7 +1340,6 @@ void ASTStmtWriter::VisitSourceLocExpr(SourceLocExpr *E) {
 void ASTStmtWriter::VisitEmbedExpr(EmbedExpr *E) {
   VisitExpr(E);
   Record.AddSourceLocation(E->getBeginLoc());
-  Record.AddSourceLocation(E->getEndLoc());
----------------
Fznamznon wrote:

If you look at EmbedExpr, you can find that it only holds a single source 
location inside and returns it on all requests. We also need to keep writer and 
reader consistent, hence the removal.

https://github.com/llvm/llvm-project/pull/197434
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to