SmallBitVectorize the deduced parameter set.

llvm-svn: 149253
This commit is contained in:
Benjamin Kramer
2012-01-30 16:17:39 +00:00
parent 47cb854818
commit e0513cb3b3
4 changed files with 26 additions and 33 deletions

View File

@@ -24,6 +24,7 @@
#include "clang/Lex/MacroInfo.h"
#include "clang/Lex/Preprocessor.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/SmallBitVector.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringSwitch.h"
@@ -2526,7 +2527,7 @@ CodeCompletionResult::CreateCodeCompletionString(ASTContext &Ctx,
// Figure out which template parameters are deduced (or have default
// arguments).
SmallVector<bool, 16> Deduced;
llvm::SmallBitVector Deduced;
Sema::MarkDeducedTemplateParameters(Ctx, FunTmpl, Deduced);
unsigned LastDeducibleArgument;
for (LastDeducibleArgument = Deduced.size(); LastDeducibleArgument > 0;