Skip to content

Commit

Permalink
Fix clang19 build (#105141)
Browse files Browse the repository at this point in the history
  • Loading branch information
am11 authored Jul 20, 2024
1 parent ef56648 commit 043ae8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/coreclr/vm/comreflectioncache.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ template <class Element, class CacheType, int CacheSize> class ReflectionCache

void Init();

#ifndef DACCESS_COMPILE
BOOL GetFromCache(Element *pElement, CacheType& rv)
{
CONTRACTL
Expand Down Expand Up @@ -102,6 +103,7 @@ template <class Element, class CacheType, int CacheSize> class ReflectionCache
AdjustStamp(TRUE);
this->LeaveWrite();
}
#endif // !DACCESS_COMPILE

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

#ifndef DACCESS_COMPILE
void AdjustStamp(BOOL hasWriterLock)
{
CONTRACTL
Expand Down Expand Up @@ -170,6 +173,7 @@ template <class Element, class CacheType, int CacheSize> class ReflectionCache
if (!hasWriterLock)
this->LeaveWrite();
}
#endif // !DACCESS_COMPILE

void UpdateHashTable(SIZE_T hash, int slot)
{
Expand Down
2 changes: 1 addition & 1 deletion src/native/containers/dn-simdhash-arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ find_first_matching_suffix_simd (
dn_simdhash_suffixes match_vector;
// Completely untested.
static const dn_simdhash_suffixes byte_mask = {
1, 2, 4, 8, 16, 32, 64, 128, 1, 2, 4, 8, 16, 32, 64, 128
{ 1, 2, 4, 8, 16, 32, 64, 128, 1, 2, 4, 8, 16, 32, 64, 128 }
};
union {
uint8_t b[4];
Expand Down

0 comments on commit 043ae8c

Please sign in to comment.