HomePhabricator

[SimplifyLibCalls] Define the value of the Euler number

Authored by evandro on Mon, Sep 30, 4:21 PM.

Description

[SimplifyLibCalls] Define the value of the Euler number

This patch fixes the build break on Windows hosts.

There must be a better way of accessing the equivalent POSIX math constant
M_E.

llvm-svn: 373274

Details

Committed
evandroMon, Sep 30, 4:21 PM
Parents
rG38456776b38e: DebugInfo: Simplify section label caching/usage
Branches
Unknown
Tags
Unknown

Event Timeline

xbolva00 added inline comments.
/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
1943

Nit: Maybe you can use:

#ifndef M_E
#define M_E ...
#endif

xbolva00 added inline comments.Mon, Sep 30, 4:27 PM
/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
1943