coverage: Memoize newly-created counter expressions

This currently has no effect, but is expected to be useful when expanding
support for branch coverage and MC/DC coverage.
This commit is contained in:
Zalathar 2024-04-21 18:11:57 +10:00
parent 1a3a54c513
commit a68bb5e176
2 changed files with 23 additions and 5 deletions

View file

@ -187,8 +187,8 @@ impl Debug for CodeRegion {
}
}
#[derive(Copy, Clone, Debug, PartialEq, TyEncodable, TyDecodable, Hash, HashStable)]
#[derive(TypeFoldable, TypeVisitable)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash, HashStable)]
#[derive(TyEncodable, TyDecodable, TypeFoldable, TypeVisitable)]
pub enum Op {
Subtract,
Add,