Skip to content

Commit d558c09

Browse files
authored
[NFC] Clean dead code in ParsedAttr.h (llvm#89064)
Signed-off-by: yronglin <[email protected]>
1 parent fda04b1 commit d558c09

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

clang/include/clang/Sema/ParsedAttr.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ struct PropertyData {
9494
: GetterId(getterId), SetterId(setterId) {}
9595
};
9696

97-
} // namespace
97+
} // namespace detail
9898

9999
/// Wraps an identifier and optional source location for the identifier.
100100
struct IdentifierLoc {
@@ -743,11 +743,6 @@ class AttributePool {
743743
IdentifierInfo *scopeName, SourceLocation scopeLoc,
744744
ArgsUnion *args, unsigned numArgs, ParsedAttr::Form form,
745745
SourceLocation ellipsisLoc = SourceLocation()) {
746-
size_t temp =
747-
ParsedAttr::totalSizeToAlloc<ArgsUnion, detail::AvailabilityData,
748-
detail::TypeTagForDatatypeData, ParsedType,
749-
detail::PropertyData>(numArgs, 0, 0, 0, 0);
750-
(void)temp;
751746
void *memory = allocate(
752747
ParsedAttr::totalSizeToAlloc<ArgsUnion, detail::AvailabilityData,
753748
detail::TypeTagForDatatypeData, ParsedType,

0 commit comments

Comments
 (0)