[clang] d558c09 - [NFC] Clean dead code in ParsedAttr.h (#89064)

via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 17 07:11:08 PDT 2024


Author: yronglin
Date: 2024-04-17T22:11:04+08:00
New Revision: d558c090fc78beb6737098f058a084635b893567

URL: https://github.com/llvm/llvm-project/commit/d558c090fc78beb6737098f058a084635b893567
DIFF: https://github.com/llvm/llvm-project/commit/d558c090fc78beb6737098f058a084635b893567.diff

LOG: [NFC] Clean dead code in ParsedAttr.h (#89064)

Signed-off-by: yronglin <yronglin777 at gmail.com>

Added: 
    

Modified: 
    clang/include/clang/Sema/ParsedAttr.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Sema/ParsedAttr.h b/clang/include/clang/Sema/ParsedAttr.h
index e3857b2f07d9e0..25a5fa05b21c7d 100644
--- a/clang/include/clang/Sema/ParsedAttr.h
+++ b/clang/include/clang/Sema/ParsedAttr.h
@@ -94,7 +94,7 @@ struct PropertyData {
       : GetterId(getterId), SetterId(setterId) {}
 };
 
-} // namespace
+} // namespace detail
 
 /// Wraps an identifier and optional source location for the identifier.
 struct IdentifierLoc {
@@ -743,11 +743,6 @@ class AttributePool {
                      IdentifierInfo *scopeName, SourceLocation scopeLoc,
                      ArgsUnion *args, unsigned numArgs, ParsedAttr::Form form,
                      SourceLocation ellipsisLoc = SourceLocation()) {
-    size_t temp =
-        ParsedAttr::totalSizeToAlloc<ArgsUnion, detail::AvailabilityData,
-                                     detail::TypeTagForDatatypeData, ParsedType,
-                                     detail::PropertyData>(numArgs, 0, 0, 0, 0);
-    (void)temp;
     void *memory = allocate(
         ParsedAttr::totalSizeToAlloc<ArgsUnion, detail::AvailabilityData,
                                      detail::TypeTagForDatatypeData, ParsedType,


        


More information about the cfe-commits mailing list