diff options
| author | Douglas Gregor <dgregor@apple.com> | 2008-12-11 17:59:21 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2008-12-11 17:59:21 +0000 |
| commit | e029561346ed7b2f1f499c098e91b968f3d4d34f (patch) | |
| tree | b02e9ba1dffbcd5dbe0dd7fb033324c6e6b5ed2b /clang/Driver/RewriteBlocks.cpp | |
| parent | 6a344e097c4bcac20a75c53d77d8a6fbc6db6914 (diff) | |
| download | bcm5719-llvm-e029561346ed7b2f1f499c098e91b968f3d4d34f.tar.gz bcm5719-llvm-e029561346ed7b2f1f499c098e91b968f3d4d34f.zip | |
Actually distinguish between RecordDecl::field_iterator and RecordDecl::field_const_iterator, propagating the constness down to the FieldDecls.
llvm-svn: 60883
Diffstat (limited to 'clang/Driver/RewriteBlocks.cpp')
| -rw-r--r-- | clang/Driver/RewriteBlocks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Driver/RewriteBlocks.cpp b/clang/Driver/RewriteBlocks.cpp index 5b6e1a988d8..1e7a6af91d0 100644 --- a/clang/Driver/RewriteBlocks.cpp +++ b/clang/Driver/RewriteBlocks.cpp @@ -1134,7 +1134,7 @@ void RewriteBlocks::HandleDeclInMainFile(Decl *D) { } if (RecordDecl *RD = dyn_cast<RecordDecl>(D)) { if (RD->isDefinition()) { - for (RecordDecl::field_const_iterator i = RD->field_begin(), + for (RecordDecl::field_iterator i = RD->field_begin(), e = RD->field_end(); i != e; ++i) { FieldDecl *FD = *i; if (isBlockPointerType(FD->getType())) |

