diff options
author | Steve Naroff <snaroff@apple.com> | 2009-03-13 16:56:44 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-03-13 16:56:44 +0000 |
commit | e78b809bbcd92928a63da81f2cd843faad3e4dfd (patch) | |
tree | a49947086849b15be6f821750d3c6464a125ad3f /lib/CodeGen/CGBlocks.cpp | |
parent | 6ae8a3600656c478d27f25639bed765f4fe71732 (diff) |
Fix <rdar://problem/6675489> BlockDecl should not use llvm::smallvector.
Also changed BlockDecl API to be more consistent (wrt FunctionDecl).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66904 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | lib/CodeGen/CGBlocks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index 53e52ad478..f61d75b0f8 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/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())); |