summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-01-06 23:17:19 +0000
committerDouglas Gregor <dgregor@apple.com>2010-01-06 23:17:19 +0000
commit03e8bdc07e8ec067a3a518727b5bad4507504ecf (patch)
tree67a201c3f462b91c18e60770e6ab5cb1ed3eb251 /clang/lib/Frontend
parent744305265277e4e4952c409e9a285bcf6b7fbaa0 (diff)
downloadbcm5719-llvm-03e8bdc07e8ec067a3a518727b5bad4507504ecf.tar.gz
bcm5719-llvm-03e8bdc07e8ec067a3a518727b5bad4507504ecf.zip
Move the allocation of designators in DesignatedInitExpr to the
ASTContext. Fixes <rdar://problem/7495428>. llvm-svn: 92867
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r--clang/lib/Frontend/PCHReaderStmt.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/PCHReaderStmt.cpp b/clang/lib/Frontend/PCHReaderStmt.cpp
index c108f549ab2..138f1e141b0 100644
--- a/clang/lib/Frontend/PCHReaderStmt.cpp
+++ b/clang/lib/Frontend/PCHReaderStmt.cpp
@@ -616,7 +616,8 @@ unsigned PCHStmtReader::VisitDesignatedInitExpr(DesignatedInitExpr *E) {
}
}
}
- E->setDesignators(Designators.data(), Designators.size());
+ E->setDesignators(*Reader.getContext(),
+ Designators.data(), Designators.size());
return NumSubExprs;
}
OpenPOWER on IntegriCloud