Fix VC++ compilation error.
llvm-svn: 26554
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 57f1066..ec77817 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/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: