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 | c4b30e596cca6172e4a784807746bb1126c82c8b (patch) | |
tree | 927afc1a6f6861ee4670673036eb09c9a8d71872 /clang/lib/CodeGen/CGBlocks.cpp | |
parent | 3fb71c8f493847b4ce4a3f1e308b292788e412b2 (diff) | |
download | bcm5719-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.cpp | 2 |
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())); |