summaryrefslogtreecommitdiff
path: root/src/vm/codeman.cpp
diff options
context:
space:
mode:
authorJohn Chen (CLR) <jochen@microsoft.com>2017-01-03 12:06:03 -0800
committerJohn Chen (CLR) <jochen@microsoft.com>2017-01-03 12:06:03 -0800
commita5c706416d46c71c7f1cede625a339e85ca52e70 (patch)
tree284f49eab0f81f605e9b3c7c0af831e5d75194c6 /src/vm/codeman.cpp
parentcbd69efb748e76485dfe0b783387ed34de82be9e (diff)
downloadcoreclr-a5c706416d46c71c7f1cede625a339e85ca52e70.tar.gz
coreclr-a5c706416d46c71c7f1cede625a339e85ca52e70.tar.bz2
coreclr-a5c706416d46c71c7f1cede625a339e85ca52e70.zip
Fix a typo that caused AVX2 flag to be unset
Fix issue #8736, a regression caused by PR #8624. A typo in the code causes the AVX2 flag to be always unset.
Diffstat (limited to 'src/vm/codeman.cpp')
-rw-r--r--src/vm/codeman.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm/codeman.cpp b/src/vm/codeman.cpp
index 98f0e53d3d..cdb7cc89aa 100644
--- a/src/vm/codeman.cpp
+++ b/src/vm/codeman.cpp
@@ -1227,7 +1227,7 @@ bool DoesOSSupportAVX()
PGETENABLEDXSTATEFEATURES pfnGetEnabledXStateFeatures = NULL;
HMODULE hMod = WszLoadLibraryEx(WINDOWS_KERNEL32_DLLNAME_W, NULL, LOAD_LIBRARY_SEARCH_SYSTEM32);
- if(hMod = NULL)
+ if(hMod == NULL)
return FALSE;
pfnGetEnabledXStateFeatures = (PGETENABLEDXSTATEFEATURES)GetProcAddress(hMod, "GetEnabledXStateFeatures");