[MCA][Scheduler] Correctly initialize field NumDispatchedToThePendingSet.

This should have been part of r354490.

llvm-svn: 354493
This commit is contained in:
Andrea Di Biagio 2019-02-20 18:23:19 +00:00
parent 9e302c6231
commit 51c1cc0757
1 changed files with 2 additions and 1 deletions

View File

@ -160,7 +160,8 @@ public:
Scheduler(std::unique_ptr<ResourceManager> RM, LSUnit &Lsu,
std::unique_ptr<SchedulerStrategy> SelectStrategy)
: LSU(Lsu), Resources(std::move(RM)), BusyResourceUnits(0) {
: LSU(Lsu), Resources(std::move(RM)), BusyResourceUnits(0),
NumDispatchedToThePendingSet(0) {
initializeStrategy(std::move(SelectStrategy));
}