[clang] [serialization] No transitive type change (PR #92511)

Chuanqi Xu via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 20 03:54:34 PDT 2024


================
@@ -7151,15 +7135,45 @@ TypeSourceInfo *ASTRecordReader::readTypeSourceInfo() {
   return TInfo;
 }
 
+static unsigned getIndexForTypeID(serialization::TypeID ID) {
+  return (ID & llvm::maskTrailingOnes<TypeID>(32)) >> Qualifiers::FastWidth;
+  ;
+}
+
+static unsigned getModuleFileIndexForTypeID(serialization::TypeID ID) {
+  return ID >> 32;
+}
+
+static bool isPredefinedTypes(serialization::TypeID ID) {
----------------
ChuanqiXu9 wrote:

Done with `isPredefinedType`

https://github.com/llvm/llvm-project/pull/92511


More information about the cfe-commits mailing list