r213122 - AST: Convert a SmallPtrSet to a SmallPtrSetImpl in RecordLayoutBuilder
David Majnemer
david.majnemer at gmail.com
Tue Jul 15 23:30:35 PDT 2014
Author: majnemer
Date: Wed Jul 16 01:30:31 2014
New Revision: 213122
URL: http://llvm.org/viewvc/llvm-project?rev=213122&view=rev
Log:
AST: Convert a SmallPtrSet to a SmallPtrSetImpl in RecordLayoutBuilder
No functionality changed, it just makes the code a little less brittle.
Modified:
cfe/trunk/lib/AST/RecordLayoutBuilder.cpp
Modified: cfe/trunk/lib/AST/RecordLayoutBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/RecordLayoutBuilder.cpp?rev=213122&r1=213121&r2=213122&view=diff
==============================================================================
--- cfe/trunk/lib/AST/RecordLayoutBuilder.cpp (original)
+++ cfe/trunk/lib/AST/RecordLayoutBuilder.cpp Wed Jul 16 01:30:31 2014
@@ -2647,10 +2647,10 @@ void MicrosoftRecordLayoutBuilder::final
// Recursively walks the non-virtual bases of a class and determines if any of
// them are in the bases with overridden methods set.
-static bool RequiresVtordisp(
- const llvm::SmallPtrSet<const CXXRecordDecl *, 2> &
- BasesWithOverriddenMethods,
- const CXXRecordDecl *RD) {
+static bool
+RequiresVtordisp(const llvm::SmallPtrSetImpl<const CXXRecordDecl *> &
+ BasesWithOverriddenMethods,
+ const CXXRecordDecl *RD) {
if (BasesWithOverriddenMethods.count(RD))
return true;
// If any of a virtual bases non-virtual bases (recursively) requires a
More information about the cfe-commits
mailing list