summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-03-13 16:56:44 +0000
committerSteve Naroff <snaroff@apple.com>2009-03-13 16:56:44 +0000
commitc4b30e596cca6172e4a784807746bb1126c82c8b (patch)
tree927afc1a6f6861ee4670673036eb09c9a8d71872 /clang/lib/CodeGen/CGBlocks.cpp
parent3fb71c8f493847b4ce4a3f1e308b292788e412b2 (diff)
downloadbcm5719-llvm-c4b30e596cca6172e4a784807746bb1126c82c8b.tar.gz
bcm5719-llvm-c4b30e596cca6172e4a784807746bb1126c82c8b.zip
Fix <rdar://problem/6675489> BlockDecl should not use llvm::smallvector.
Also changed BlockDecl API to be more consistent (wrt FunctionDecl). llvm-svn: 66904
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index 53e52ad478a..f61d75b0f8c 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/lib/CodeGen/CGBlocks.cpp
@@ -624,7 +624,7 @@ CodeGenFunction::GenerateBlockFunction(const BlockExpr *BExpr,
Args.push_back(std::make_pair(SelfDecl, SelfDecl->getType()));
BlockStructDecl = SelfDecl;
- for (BlockDecl::param_iterator i = BD->param_begin(),
+ for (BlockDecl::param_const_iterator i = BD->param_begin(),
e = BD->param_end(); i != e; ++i)
Args.push_back(std::make_pair(*i, (*i)->getType()));
OpenPOWER on IntegriCloud