summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/RewriteObjC.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-02-19 01:50:18 +0000
committerTed Kremenek <kremenek@apple.com>2010-02-19 01:50:18 +0000
commit013041eef05bc87f50eae1b8ab8aee7c1c6ecc86 (patch)
treecffd25945fa894bd2c6868ae75cd17e34d73ee42 /clang/lib/Frontend/RewriteObjC.cpp
parent40efb08d87a6ac71f8cf2c7dfadc11e4d048ec26 (diff)
downloadbcm5719-llvm-013041eef05bc87f50eae1b8ab8aee7c1c6ecc86.tar.gz
bcm5719-llvm-013041eef05bc87f50eae1b8ab8aee7c1c6ecc86.zip
Revert: "Change InitListExpr to allocate the array for holding references"
This was causing buildbot breakage. This reverts commit d46e952cc8cb8d9eed8657d9a0b267910a0f745a. llvm-svn: 96652
Diffstat (limited to 'clang/lib/Frontend/RewriteObjC.cpp')
-rw-r--r--clang/lib/Frontend/RewriteObjC.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/clang/lib/Frontend/RewriteObjC.cpp b/clang/lib/Frontend/RewriteObjC.cpp
index 40d444d94e4..fff8b54ba6c 100644
--- a/clang/lib/Frontend/RewriteObjC.cpp
+++ b/clang/lib/Frontend/RewriteObjC.cpp
@@ -2613,11 +2613,9 @@ Stmt *RewriteObjC::SynthMessageExpr(ObjCMessageExpr *Exp) {
CastExpr::CK_Unknown, SuperRep);
} else {
// (struct objc_super) { <exprs from above> }
- InitListExpr *ILE = new (Context) InitListExpr(*Context,
- SourceLocation(),
- &InitExprs[0],
- InitExprs.size(),
- SourceLocation());
+ InitListExpr *ILE = new (Context) InitListExpr(SourceLocation(),
+ &InitExprs[0], InitExprs.size(),
+ SourceLocation());
TypeSourceInfo *superTInfo
= Context->getTrivialTypeSourceInfo(superType);
SuperRep = new (Context) CompoundLiteralExpr(SourceLocation(), superTInfo,
@@ -2700,11 +2698,9 @@ Stmt *RewriteObjC::SynthMessageExpr(ObjCMessageExpr *Exp) {
CastExpr::CK_Unknown, SuperRep);
} else {
// (struct objc_super) { <exprs from above> }
- InitListExpr *ILE = new (Context) InitListExpr(*Context,
- SourceLocation(),
- &InitExprs[0],
- InitExprs.size(),
- SourceLocation());
+ InitListExpr *ILE = new (Context) InitListExpr(SourceLocation(),
+ &InitExprs[0], InitExprs.size(),
+ SourceLocation());
TypeSourceInfo *superTInfo
= Context->getTrivialTypeSourceInfo(superType);
SuperRep = new (Context) CompoundLiteralExpr(SourceLocation(), superTInfo,
OpenPOWER on IntegriCloud