summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/VTableBuilder.cpp
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2014-03-31 11:01:51 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2014-03-31 11:01:51 +0000
commit9ae7d3bd5f7bad36d8d318ce0ca846907b41826a (patch)
tree76e58fad90c7ed09aad16d18b3e2267abd8ce4f9 /clang/lib/AST/VTableBuilder.cpp
parentdaf7c022c922fe20d6fdfd4f7ba6d9bceaac3551 (diff)
downloadbcm5719-llvm-9ae7d3bd5f7bad36d8d318ce0ca846907b41826a.tar.gz
bcm5719-llvm-9ae7d3bd5f7bad36d8d318ce0ca846907b41826a.zip
Slightly improve the readability of MicrosoftVTableContext::computeVTablePaths(). No functionality changes.
llvm-svn: 205178
Diffstat (limited to 'clang/lib/AST/VTableBuilder.cpp')
-rw-r--r--clang/lib/AST/VTableBuilder.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/AST/VTableBuilder.cpp b/clang/lib/AST/VTableBuilder.cpp
index 1b982a306b9..c6b38d31d4f 100644
--- a/clang/lib/AST/VTableBuilder.cpp
+++ b/clang/lib/AST/VTableBuilder.cpp
@@ -3215,13 +3215,13 @@ void MicrosoftVTableContext::computeVTablePaths(bool ForVBTables,
Paths.push_back(P);
}
+ if (B.isVirtual())
+ VBasesSeen.insert(Base);
+
// After visiting any direct base, we've transitively visited all of its
// morally virtual bases.
for (const auto &VB : Base->vbases())
VBasesSeen.insert(VB.getType()->getAsCXXRecordDecl());
-
- if (B.isVirtual())
- VBasesSeen.insert(Base);
}
// Sort the paths into buckets, and if any of them are ambiguous, extend all
OpenPOWER on IntegriCloud