зеркало из https://github.com/microsoft/clang-1.git
Add an explicit UsuallyTinyPtrVector that takes a single element.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102283 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
f500de5bdf
Коммит
8f2abbc791
|
@ -33,6 +33,8 @@ class UsuallyTinyPtrVector {
|
|||
|
||||
public:
|
||||
UsuallyTinyPtrVector() : Storage(0) { }
|
||||
explicit UsuallyTinyPtrVector(T *Element)
|
||||
: Storage(reinterpret_cast<uintptr_t>(Element)) { }
|
||||
|
||||
bool empty() const { return !Storage; }
|
||||
|
||||
|
|
|
@ -1503,11 +1503,10 @@ BuildImplicitBaseInitializer(Sema &SemaRef, CXXConstructorDecl *Constructor,
|
|||
SourceLocation(), ParamType, 0);
|
||||
|
||||
// Cast to the base class to avoid ambiguities.
|
||||
CXXBaseSpecifierArray BasePath;
|
||||
BasePath.push_back(BaseSpec);
|
||||
SemaRef.ImpCastExprToType(CopyCtorArg, BaseSpec->getType(),
|
||||
CastExpr::CK_UncheckedDerivedToBase,
|
||||
/*isLvalue=*/true, BasePath);
|
||||
/*isLvalue=*/true,
|
||||
CXXBaseSpecifierArray(BaseSpec));
|
||||
|
||||
InitializationKind InitKind
|
||||
= InitializationKind::CreateDirect(Constructor->getLocation(),
|
||||
|
|
Загрузка…
Ссылка в новой задаче