Skip to content

Commit 632dea7

Browse files
authored
Workaround for MSVC 17.8 bug (#333)
* Workaround for MSVC 17.8 bug fixes #330 * Bugfix to the bugfix
1 parent c0e8153 commit 632dea7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/Lib/CommonLib/x86/InitX86.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,14 @@ void LoopFilter::initLoopFilterX86()
147147
void RdCost::initRdCostX86()
148148
{
149149
auto vext = read_x86_extension_flags();
150-
switch (vext){
150+
switch (vext){
151151
case AVX512:
152152
case AVX2:
153+
#if defined( _MSC_VER ) && _MSC_VER >= 1938
154+
#else
153155
_initRdCostX86<AVX2>();
154156
break;
157+
#endif
155158
case AVX:
156159
_initRdCostX86<AVX>();
157160
break;

0 commit comments

Comments
 (0)