Compute the proper sourcerange for an CompoundLiteralExpr.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45504 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/StmtSerialization.cpp b/AST/StmtSerialization.cpp
index 5320a39..d6f9dca 100644
--- a/AST/StmtSerialization.cpp
+++ b/AST/StmtSerialization.cpp
@@ -387,13 +387,15 @@
 
 void CompoundLiteralExpr::EmitImpl(Serializer& S) const {
   S.Emit(getType());
+  S.Emit(getLParenLoc());
   S.EmitOwnedPtr(Init);
 }
 
 CompoundLiteralExpr* CompoundLiteralExpr::CreateImpl(Deserializer& D) {
   QualType Q = QualType::ReadVal(D);
+  SourceLocation L = SourceLocation::ReadVal(D);
   Expr* Init = D.ReadOwnedPtr<Expr>();
-  return new CompoundLiteralExpr(Q,Init);
+  return new CompoundLiteralExpr(L, Q, Init);
 }
 
 void CompoundStmt::EmitImpl(Serializer& S) const {