mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
c11_atomics: fix uninitialized member accesses (#1819)
Initialize the `_memoryOrder` and `_memoryScope` members to avoid `CBasicTestMemOrderScope::MaxHostThreads()` accessing uninitialized data. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
115e999a38
commit
42434d04d0
@@ -644,8 +644,8 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
TExplicitMemoryOrderType _memoryOrder;
|
||||
TExplicitMemoryScopeType _memoryScope;
|
||||
TExplicitMemoryOrderType _memoryOrder = MEMORY_ORDER_EMPTY;
|
||||
TExplicitMemoryScopeType _memoryScope = MEMORY_SCOPE_EMPTY;
|
||||
};
|
||||
|
||||
template <typename HostAtomicType, typename HostDataType>
|
||||
|
||||
Reference in New Issue
Block a user