mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-30 01:01:27 +00:00
[vfs] Assert that the status is known in equivalent().
Otherwise we'd silently compare uninitialized data. llvm-svn: 308604
This commit is contained in:
1 parent
7534b28291
commit
d515291ffd
1 file changed
+1
@@ -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