зеркало из https://github.com/microsoft/clang-1.git
Silence uninitialized value warning during Release build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52375 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
23cfca3760
Коммит
9bcf44aeef
|
@ -107,10 +107,11 @@ RecordDecl *RecordDecl::Create(ASTContext &C, TagKind TK, DeclContext *DC,
|
|||
void *Mem = C.getAllocator().Allocate<RecordDecl>();
|
||||
Kind DK;
|
||||
switch (TK) {
|
||||
case TK_enum: assert(0 && "Enum TagKind passed for Record!");
|
||||
case TK_struct: DK = Struct; break;
|
||||
case TK_union: DK = Union; break;
|
||||
case TK_class: DK = Class; break;
|
||||
default: assert(0 && "Invalid TagKind!");
|
||||
case TK_enum: assert(0 && "Enum TagKind passed for Record!");
|
||||
case TK_struct: DK = Struct; break;
|
||||
case TK_union: DK = Union; break;
|
||||
case TK_class: DK = Class; break;
|
||||
}
|
||||
return new (Mem) RecordDecl(DK, DC, L, Id, PrevDecl);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче