Fix left shift undefined behaviour

Here BitOffset can have values higher than 32.
This commit is contained in:
Paulo Matos 2024-05-16 10:22:03 +02:00
parent efe7c54374
commit 93e4288c57

View File

@ -1018,7 +1018,7 @@ private:
}
static bool IsNZCV(unsigned BitOffset) {
return ContainsNZCV(1U << BitOffset);
return ContainsNZCV(UINT64_C(1) << BitOffset);
}
OrderedNode* CachedNZCV {};