This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGe396c375a108: [AST] Remove unused function removeLocalCVRQualifiers (authored by kazu).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D151607/new/ https://reviews.llvm.org/D151607 Files: clang/include/clang/AST/Type.h Index: clang/include/clang/AST/Type.h =================================================================== --- clang/include/clang/AST/Type.h +++ clang/include/clang/AST/Type.h @@ -948,7 +948,6 @@ void removeLocalConst(); void removeLocalVolatile(); void removeLocalRestrict(); - void removeLocalCVRQualifiers(unsigned Mask); void removeLocalFastQualifiers() { Value.setInt(0); } void removeLocalFastQualifiers(unsigned Mask) { @@ -6781,15 +6780,6 @@ removeLocalFastQualifiers(Qualifiers::Volatile); } -inline void QualType::removeLocalCVRQualifiers(unsigned Mask) { - assert(!(Mask & ~Qualifiers::CVRMask) && "mask has non-CVR bits"); - static_assert((int)Qualifiers::CVRMask == (int)Qualifiers::FastMask, - "Fast bits differ from CVR bits!"); - - // Fast path: we don't need to touch the slow qualifiers. - removeLocalFastQualifiers(Mask); -} - /// Check if this type has any address space qualifier. inline bool QualType::hasAddressSpace() const { return getQualifiers().hasAddressSpace();
Index: clang/include/clang/AST/Type.h =================================================================== --- clang/include/clang/AST/Type.h +++ clang/include/clang/AST/Type.h @@ -948,7 +948,6 @@ void removeLocalConst(); void removeLocalVolatile(); void removeLocalRestrict(); - void removeLocalCVRQualifiers(unsigned Mask); void removeLocalFastQualifiers() { Value.setInt(0); } void removeLocalFastQualifiers(unsigned Mask) { @@ -6781,15 +6780,6 @@ removeLocalFastQualifiers(Qualifiers::Volatile); } -inline void QualType::removeLocalCVRQualifiers(unsigned Mask) { - assert(!(Mask & ~Qualifiers::CVRMask) && "mask has non-CVR bits"); - static_assert((int)Qualifiers::CVRMask == (int)Qualifiers::FastMask, - "Fast bits differ from CVR bits!"); - - // Fast path: we don't need to touch the slow qualifiers. - removeLocalFastQualifiers(Mask); -} - /// Check if this type has any address space qualifier. inline bool QualType::hasAddressSpace() const { return getQualifiers().hasAddressSpace();
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits