Skip to content

Commit 043ae8c

Browse files
authored
Fix clang19 build (#105141)
1 parent ef56648 commit 043ae8c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/coreclr/vm/comreflectioncache.hpp

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ template <class Element, class CacheType, int CacheSize> class ReflectionCache
2626

2727
void Init();
2828

29+
#ifndef DACCESS_COMPILE
2930
BOOL GetFromCache(Element *pElement, CacheType& rv)
3031
{
3132
CONTRACTL
@@ -102,6 +103,7 @@ template <class Element, class CacheType, int CacheSize> class ReflectionCache
102103
AdjustStamp(TRUE);
103104
this->LeaveWrite();
104105
}
106+
#endif // !DACCESS_COMPILE
105107

106108
private:
107109
// Lock must have been taken before calling this.
@@ -141,6 +143,7 @@ template <class Element, class CacheType, int CacheSize> class ReflectionCache
141143
return CacheSize;
142144
}
143145

146+
#ifndef DACCESS_COMPILE
144147
void AdjustStamp(BOOL hasWriterLock)
145148
{
146149
CONTRACTL
@@ -170,6 +173,7 @@ template <class Element, class CacheType, int CacheSize> class ReflectionCache
170173
if (!hasWriterLock)
171174
this->LeaveWrite();
172175
}
176+
#endif // !DACCESS_COMPILE
173177

174178
void UpdateHashTable(SIZE_T hash, int slot)
175179
{

src/native/containers/dn-simdhash-arch.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ find_first_matching_suffix_simd (
105105
dn_simdhash_suffixes match_vector;
106106
// Completely untested.
107107
static const dn_simdhash_suffixes byte_mask = {
108-
1, 2, 4, 8, 16, 32, 64, 128, 1, 2, 4, 8, 16, 32, 64, 128
108+
{ 1, 2, 4, 8, 16, 32, 64, 128, 1, 2, 4, 8, 16, 32, 64, 128 }
109109
};
110110
union {
111111
uint8_t b[4];

0 commit comments

Comments
 (0)