Fix VC++ compilation error.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26554 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jeff Cohen 2006-03-05 21:43:37 +00:00
parent c0fe53383e
commit 3d68e15c20

View File

@ -29,6 +29,11 @@
#include <algorithm>
using namespace llvm;
#ifdef _MSC_VER
#include <float.h>
#define copysign _copysign
#endif
static bool isCommutativeBinOp(unsigned Opcode) {
switch (Opcode) {
case ISD::ADD: