Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit cf1d6e4

Browse files
author
Sergey Andreenko
committed
fix ifdefs comments
1 parent 17de92e commit cf1d6e4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/jit/lower.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4778,9 +4778,9 @@ GenTree* Lowering::LowerConstIntDivOrMod(GenTree* node)
47784778
{
47794779
#ifdef _TARGET_64BIT_
47804780
magic = MagicDivide::GetSigned64Magic(static_cast<int64_t>(divisorValue), &shift);
4781-
#else
4781+
#else // !_TARGET_64BIT_
47824782
unreached();
4783-
#endif
4783+
#endif // !_TARGET_64BIT_
47844784
}
47854785

47864786
divisor->gtIntConCommon.SetIconValue(magic);
@@ -4872,9 +4872,11 @@ GenTree* Lowering::LowerConstIntDivOrMod(GenTree* node)
48724872
}
48734873

48744874
return mulhi;
4875-
#else
4875+
#elif defined(_TARGET_ARM_)
48764876
// Currently there's no GT_MULHI for ARM32
48774877
return nullptr;
4878+
#else
4879+
#error Unsupported or unset target architecture
48784880
#endif
48794881
}
48804882

src/jit/morph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12052,7 +12052,7 @@ GenTree* Compiler::fgMorphSmpOp(GenTree* tree, MorphAddrContext* mac)
1205212052
op2 = tree->gtOp.gtOp2;
1205312053
}
1205412054
}
12055-
#endif //_TARGET_ARM64_
12055+
#endif // !_TARGET_ARM64_
1205612056
#endif // !LEGACY_BACKEND
1205712057
break;
1205812058

0 commit comments

Comments
 (0)