fix ifdefs comments
authorSergey Andreenko <seandree@microsoft.com>
Thu, 29 Mar 2018 22:17:06 +0000 (15:17 -0700)
committerSergey Andreenko <seandree@microsoft.com>
Fri, 30 Mar 2018 21:27:06 +0000 (14:27 -0700)
src/jit/lower.cpp
src/jit/morph.cpp

index dbac32d..d7fcee6 100644 (file)
@@ -4778,9 +4778,9 @@ GenTree* Lowering::LowerConstIntDivOrMod(GenTree* node)
         {
 #ifdef _TARGET_64BIT_
             magic = MagicDivide::GetSigned64Magic(static_cast<int64_t>(divisorValue), &shift);
-#else
+#else  // !_TARGET_64BIT_
             unreached();
-#endif
+#endif // !_TARGET_64BIT_
         }
 
         divisor->gtIntConCommon.SetIconValue(magic);
@@ -4872,9 +4872,11 @@ GenTree* Lowering::LowerConstIntDivOrMod(GenTree* node)
         }
 
         return mulhi;
-#else
+#elif defined(_TARGET_ARM_)
         // Currently there's no GT_MULHI for ARM32
         return nullptr;
+#else
+#error Unsupported or unset target architecture
 #endif
     }
 
index 22d6b61..7cc1d79 100644 (file)
@@ -12052,7 +12052,7 @@ GenTree* Compiler::fgMorphSmpOp(GenTree* tree, MorphAddrContext* mac)
                     op2  = tree->gtOp.gtOp2;
                 }
             }
-#endif //_TARGET_ARM64_
+#endif // !_TARGET_ARM64_
 #endif // !LEGACY_BACKEND
             break;