/// Starting index in SearchDirs that the cached search was performed from.
/// If there is a hit and this value doesn't match the current query, the
/// cache has to be ignored.
- unsigned StartIdx = 0;
+ unsigned StartIdx;
/// The entry in SearchDirs that satisfied the query.
- unsigned HitIdx = 0;
+ unsigned HitIdx;
/// This is non-null if the original filename was mapped to a framework
/// include via a headermap.
- const char *MappedName = nullptr;
+ const char *MappedName;
+
+ /// Default constructor -- Initialize all members with zero.
+ LookupFileCacheInfo(): StartIdx(0), HitIdx(0), MappedName(nullptr) {}
};
llvm::StringMap<LookupFileCacheInfo, llvm::BumpPtrAllocator> LookupFileCache;