Fix conversion from CorJitFlag2 enum to JitFlag. (dotnet/coreclr#7857)
authorAustin Wise <AustinWise@gmail.com>
Fri, 28 Oct 2016 01:03:30 +0000 (18:03 -0700)
committerJan Kotas <jkotas@microsoft.com>
Fri, 28 Oct 2016 01:03:30 +0000 (18:03 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/e1faf243c624050f3a3bb1a72ff63938d59240a2

src/coreclr/src/jit/jitee.h

index 772813f..f9bd83f 100644 (file)
@@ -137,7 +137,7 @@ public:
     if ((corJitFlags & (oldf)) != 0)                                                                                   \
         this->Set(JitFlags::newf);
 #define CONVERT_OLD_FLAG2(oldf, newf)                                                                                  \
-    if ((corJitFlags & (oldf)) != 0)                                                                                   \
+    if ((corJitFlags2 & (oldf)) != 0)                                                                                  \
         this->Set(JitFlags::newf);
 
         CONVERT_OLD_FLAG(CORJIT_FLG_SPEED_OPT, JIT_FLAG_SPEED_OPT)