spirv-fuzz: Fix replayer bug (#3401)

Fixes #3395.
This commit is contained in:
Vasyl Teliman 2020-06-05 16:34:39 +03:00 committed by GitHub
parent 9ed0fef6e1
commit 7c213720bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -813,8 +813,10 @@ void FactManager::DataSynonymAndIdEquationFacts::ComputeClosureOfFacts(
struct DataDescriptorPairEquals {
bool operator()(const DataDescriptorPair& first,
const DataDescriptorPair& second) const {
return DataDescriptorEquals()(&first.first, &second.first) &&
DataDescriptorEquals()(&first.second, &second.second);
return (DataDescriptorEquals()(&first.first, &second.first) &&
DataDescriptorEquals()(&first.second, &second.second)) ||
(DataDescriptorEquals()(&first.first, &second.second) &&
DataDescriptorEquals()(&first.second, &second.first));
}
};