Skip to content

Commit a31a96a

Browse files
committed
remove cir::MissingFeatures::tbaaTagForEnum()
1 parent 2028eb8 commit a31a96a

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

clang/include/clang/CIR/MissingFeatures.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ struct MissingFeatures {
6060
static bool tbaa() { return false; }
6161
static bool tbaaStruct() { return false; }
6262
static bool tbaaTagForStruct() { return false; }
63-
static bool tbaaTagForEnum() { return true; }
6463
static bool tbaaTagForBitInt() { return false; }
6564
static bool tbaaVTablePtr() { return false; }
6665
static bool tbaaIncompleteType() { return false; }

clang/lib/CIR/CodeGen/CIRGenTBAA.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ cir::TBAAAttr CIRGenTBAA::getTypeInfoHelper(clang::QualType qty) {
174174
// Enum types are distinct types. In C++ they have "underlying types",
175175
// however they aren't related for TBAA.
176176
if (const EnumType *ety = dyn_cast<EnumType>(ty)) {
177-
assert(cir::MissingFeatures::tbaaTagForEnum());
178177
if (!features.CPlusPlus)
179178
return getTypeInfo(ety->getDecl()->getIntegerType());
180179

0 commit comments

Comments
 (0)