summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/MicrosoftCXXABI.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-03-13 15:41:46 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-03-13 15:41:46 +0000
commit574705ed7f80c59da543ad26d4a5fcd962b5c27d (patch)
treea2037e4203693828cbfd1f19000dc4199ff6204d /clang/lib/CodeGen/MicrosoftCXXABI.cpp
parent48803e5ca9c07109c5de8b379c24f15d21b8c244 (diff)
downloadbcm5719-llvm-574705ed7f80c59da543ad26d4a5fcd962b5c27d.tar.gz
bcm5719-llvm-574705ed7f80c59da543ad26d4a5fcd962b5c27d.zip
[C++11] Replacing CXXRecordDecl iterators bases_begin() and bases_end() with iterator_range bases(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 203803
Diffstat (limited to 'clang/lib/CodeGen/MicrosoftCXXABI.cpp')
-rw-r--r--clang/lib/CodeGen/MicrosoftCXXABI.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/MicrosoftCXXABI.cpp b/clang/lib/CodeGen/MicrosoftCXXABI.cpp
index 22a7cafd256..66774e52caa 100644
--- a/clang/lib/CodeGen/MicrosoftCXXABI.cpp
+++ b/clang/lib/CodeGen/MicrosoftCXXABI.cpp
@@ -634,9 +634,8 @@ llvm::Value *MicrosoftCXXABI::adjustThisArgumentForVirtualCall(
AvoidVirtualOffset = true;
} else {
// Let's see if we try to call a destructor of a non-virtual base.
- for (CXXRecordDecl::base_class_const_iterator I = CurRD->bases_begin(),
- E = CurRD->bases_end(); I != E; ++I) {
- if (I->getType()->getAsCXXRecordDecl() != MD->getParent())
+ for (const auto &I : CurRD->bases()) {
+ if (I.getType()->getAsCXXRecordDecl() != MD->getParent())
continue;
// If we call a base destructor for a non-virtual base, we statically
// know where it expects the vfptr and "this" to be.
OpenPOWER on IntegriCloud