commit | 3d68e15c20fd91183e352b906395fbc98c27d7af | [log] [tgz] |
---|---|---|
author | Jeff Cohen <jeffc@jolt-lang.org> | Sun Mar 05 21:43:37 2006 +0000 |
committer | Jeff Cohen <jeffc@jolt-lang.org> | Sun Mar 05 21:43:37 2006 +0000 |
tree | eaa257b6470acffb213b5f706519fcbdd2291571 | |
parent | c0fe53383e920ee7b95056db7ae2ec324746257e [diff] [blame] |
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 57f1066..ec77817 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -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: