diff --git a/src/coreclr/vm/threadstatics.cpp b/src/coreclr/vm/threadstatics.cpp index 5847cc5c13bb47..e7246ab1db414f 100644 --- a/src/coreclr/vm/threadstatics.cpp +++ b/src/coreclr/vm/threadstatics.cpp @@ -731,7 +731,7 @@ void GetTLSIndexForThreadStatic(MethodTable* pMT, bool gcStatic, TLSIndex* pInde uint32_t alignment; if (bytesNeeded >= 8) alignment = 8; - if (bytesNeeded >= 4) + else if (bytesNeeded >= 4) alignment = 4; else if (bytesNeeded >= 2) alignment = 2;