This patch fixes the build break on Windows hosts.
There must be a better way of accessing the equivalent POSIX math constant
`M_E`.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373274
91177308-0d34-0410-b5e6-
96231b3b80d8
ArgID == Intrinsic::exp || ArgID == Intrinsic::exp2) {
Constant *Eul;
if (ArgLb == ExpLb || ArgID == Intrinsic::exp)
- Eul = ConstantFP::get(Log->getType(), M_E);
+ // FIXME: The Euler number should be M_E, but it's place of definition
+ // is not quite standard.
+ Eul = ConstantFP::get(Log->getType(), 2.7182818284590452354);
else if (ArgLb == Exp2Lb || ArgID == Intrinsic::exp2)
Eul = ConstantFP::get(Log->getType(), 2.0);
else