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 <yronglin...@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,


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to