From: Jeff Cohen Date: Sun, 5 Mar 2006 21:43:37 +0000 (+0000) Subject: Fix VC++ compilation error. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3d68e15c20fd91183e352b906395fbc98c27d7af;p=oota-llvm.git Fix VC++ compilation error. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26554 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 57f10663d03..ec778171692 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -29,6 +29,11 @@ #include using namespace llvm; +#ifdef _MSC_VER +#include +#define copysign _copysign +#endif + static bool isCommutativeBinOp(unsigned Opcode) { switch (Opcode) { case ISD::ADD: