aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2006-03-05 21:43:37 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2006-03-05 21:43:37 +0000
commit3d68e15c20fd91183e352b906395fbc98c27d7af (patch)
treeeaa257b6470acffb213b5f706519fcbdd2291571
parentc0fe53383e920ee7b95056db7ae2ec324746257e (diff)
downloadexternal_llvm-3d68e15c20fd91183e352b906395fbc98c27d7af.zip
external_llvm-3d68e15c20fd91183e352b906395fbc98c27d7af.tar.gz
external_llvm-3d68e15c20fd91183e352b906395fbc98c27d7af.tar.bz2
Fix VC++ compilation error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26554 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAG.cpp5
1 files changed, 5 insertions, 0 deletions
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: