[vfs] Assert that the status is known in equivalent().
Otherwise we'd silently compare uninitialized data. llvm-svn: 308604
This commit is contained in:
@@ -59,6 +59,7 @@ Status Status::copyWithNewName(const file_status &In, StringRef NewName) {
|
||||
}
|
||||
|
||||
bool Status::equivalent(const Status &Other) const {
|
||||
assert(isStatusKnown() && Other.isStatusKnown());
|
||||
return getUniqueID() == Other.getUniqueID();
|
||||
}
|
||||
bool Status::isDirectory() const {
|
||||
|
||||
Reference in New Issue
Block a user