[clang] 170ca11 - [Sema] Remove unused function after 8c7b64b5ae2a

Benjamin Kramer via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 15 03:21:59 PDT 2022


Author: Benjamin Kramer
Date: 2022-06-15T12:20:44+02:00
New Revision: 170ca11aeff25735006ca51e5ed3005b672e8f97

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

LOG: [Sema] Remove unused function after 8c7b64b5ae2a

Added: 
    

Modified: 
    clang/lib/Sema/SemaType.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Sema/SemaType.cpp b/clang/lib/Sema/SemaType.cpp
index 0c84673b3479..0015d6a870b9 100644
--- a/clang/lib/Sema/SemaType.cpp
+++ b/clang/lib/Sema/SemaType.cpp
@@ -8221,19 +8221,6 @@ static void HandleLifetimeBoundAttr(TypeProcessingState &State,
   }
 }
 
-static bool isAddressSpaceKind(const ParsedAttr &attr) {
-  auto attrKind = attr.getKind();
-
-  return attrKind == ParsedAttr::AT_AddressSpace ||
-         attrKind == ParsedAttr::AT_OpenCLPrivateAddressSpace ||
-         attrKind == ParsedAttr::AT_OpenCLGlobalAddressSpace ||
-         attrKind == ParsedAttr::AT_OpenCLGlobalDeviceAddressSpace ||
-         attrKind == ParsedAttr::AT_OpenCLGlobalHostAddressSpace ||
-         attrKind == ParsedAttr::AT_OpenCLLocalAddressSpace ||
-         attrKind == ParsedAttr::AT_OpenCLConstantAddressSpace ||
-         attrKind == ParsedAttr::AT_OpenCLGenericAddressSpace;
-}
-
 static void processTypeAttrs(TypeProcessingState &state, QualType &type,
                              TypeAttrLocation TAL,
                              const ParsedAttributesView &attrs) {


        


More information about the cfe-commits mailing list