[clang][Interp][NFC] Remove an unused function
authorTimm Bäder <tbaeder@redhat.com>
Wed, 7 Dec 2022 15:18:29 +0000 (16:18 +0100)
committerTimm Bäder <tbaeder@redhat.com>
Wed, 25 Jan 2023 15:03:33 +0000 (16:03 +0100)
clang/lib/AST/Interp/PrimType.h

index 042325a..db9d8c3 100644 (file)
@@ -69,24 +69,6 @@ static inline bool aligned(const void *P) {
   return aligned(reinterpret_cast<uintptr_t>(P));
 }
 
-inline bool isPrimitiveIntegral(PrimType Type) {
-  switch (Type) {
-  case PT_Bool:
-  case PT_Sint8:
-  case PT_Uint8:
-  case PT_Sint16:
-  case PT_Uint16:
-  case PT_Sint32:
-  case PT_Uint32:
-  case PT_Sint64:
-  case PT_Uint64:
-  case PT_Float:
-    return true;
-  default:
-    return false;
-  }
-}
-
 } // namespace interp
 } // namespace clang