summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExprObjC.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-09-24 17:30:16 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-09-24 17:30:16 +0000
commit8fb87aec78b52b6133b4359c24c2407431e8c2a4 (patch)
tree9f6e911138ca10f3d9efaef0f8ff6469daa8b99e /clang/lib/Sema/SemaExprObjC.cpp
parentcbb421887de951f0d689415522430fcad3c764fd (diff)
downloadbcm5719-llvm-8fb87aec78b52b6133b4359c24c2407431e8c2a4.tar.gz
bcm5719-llvm-8fb87aec78b52b6133b4359c24c2407431e8c2a4.zip
Patch implements passing arrays to functions expecting
vla. Implements pr7827. llvm-svn: 114737
Diffstat (limited to 'clang/lib/Sema/SemaExprObjC.cpp')
-rw-r--r--clang/lib/Sema/SemaExprObjC.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExprObjC.cpp b/clang/lib/Sema/SemaExprObjC.cpp
index e9295ebb244..a9c7a727f12 100644
--- a/clang/lib/Sema/SemaExprObjC.cpp
+++ b/clang/lib/Sema/SemaExprObjC.cpp
@@ -241,7 +241,8 @@ bool Sema::CheckMessageArgumentTypes(Expr **Args, unsigned NumArgs,
<< argExpr->getSourceRange()))
return true;
- InitializedEntity Entity = InitializedEntity::InitializeParameter(Param);
+ InitializedEntity Entity = InitializedEntity::InitializeParameter(Context,
+ Param);
ExprResult ArgE = PerformCopyInitialization(Entity,
SourceLocation(),
Owned(argExpr->Retain()));
OpenPOWER on IntegriCloud