Index: lld/trunk/COFF/DebugTypes.cpp =================================================================== --- lld/trunk/COFF/DebugTypes.cpp +++ lld/trunk/COFF/DebugTypes.cpp @@ -198,9 +198,9 @@ pdb::InfoStream &Info = cantFail(PDBFile.getPDBInfoStream()); // Just because a file with a matching name was found doesn't mean it can be - // used. The GUID and Age must match between the PDB header and the OBJ + // used. The GUID must match between the PDB header and the OBJ // TypeServer2 record. The 'Age' is used by MSVC incremental compilation. - if (Info.getGuid() != TS.getGuid() || Info.getAge() != TS.getAge()) + if (Info.getGuid() != TS.getGuid()) return createFileError( TS.Name, make_error(pdb::pdb_error_code::signature_out_of_date)); Index: lld/trunk/test/COFF/Inputs/pdb-type-server-valid-signature.yaml =================================================================== --- lld/trunk/test/COFF/Inputs/pdb-type-server-valid-signature.yaml +++ lld/trunk/test/COFF/Inputs/pdb-type-server-valid-signature.yaml @@ -69,7 +69,7 @@ - Kind: LF_TYPESERVER2 TypeServer2: Guid: '{8DABD2A0-28FF-CB43-9BAF-175B77B76414}' - Age: 1 + Age: 18 Name: 'pdb-diff-cl.pdb' - Name: '.text$mn' Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]