Fix VC++ compilation error.
authorJeff Cohen <jeffc@jolt-lang.org>
Sun, 5 Mar 2006 21:43:37 +0000 (21:43 +0000)
committerJeff Cohen <jeffc@jolt-lang.org>
Sun, 5 Mar 2006 21:43:37 +0000 (21:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26554 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index 57f10663d03fe7414e600658d137d1c51850c262..ec778171692afe2c1b34a3b76d1ff8f428397fc8 100644 (file)
 #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: