Skip to content

Commit b22d8b7

Browse files
authored
tools/syz-declextract: remove support for old clang
1 parent 5b07e94 commit b22d8b7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tools/syz-declextract/clangtool/declextract.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -281,13 +281,7 @@ FieldType Extractor::extractRecord(QualType QT, const RecordType* Typ, const std
281281
IsAnonymous = true;
282282
}
283283
FieldType FieldType = genType(F->getType(), BackupFieldName);
284-
int BitWidth = F->isBitField()
285-
#if LLVM_VERSION_MAJOR >= 21
286-
? F->getBitWidthValue()
287-
#else
288-
? F->getBitWidthValue(*Context)
289-
#endif
290-
: 0;
284+
int BitWidth = F->isBitField() ? F->getBitWidthValue() : 0;
291285
int CountedBy = F->getType()->isCountAttributedType()
292286
? llvm::dyn_cast<FieldDecl>(
293287
F->getType()->getAs<CountAttributedType>()->getCountExpr()->getReferencedDeclOfCallee())

0 commit comments

Comments
 (0)