mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 01:48:50 +08:00
fix: add checks to avoid invalid behavior
Related-To: NEO-9038 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
0c8a514349
commit
ece03e6bbf
@@ -46,7 +46,9 @@ class Timer::TimerImpl {
|
||||
}
|
||||
|
||||
TimerImpl &operator=(const TimerImpl &t) {
|
||||
startTime = t.startTime;
|
||||
if (this != &t) {
|
||||
startTime = t.startTime;
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user