summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
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
commit55e2aac24b1c44f3a38024cd37d6b1c336884ab8 (patch)
tree4c7034f42aa92ad0fca9c0146b0220644f1eb117 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parentaf25c7e4f33031c048784e31d9268f057e2e04ec (diff)
downloadbcm5719-llvm-55e2aac24b1c44f3a38024cd37d6b1c336884ab8.tar.gz
bcm5719-llvm-55e2aac24b1c44f3a38024cd37d6b1c336884ab8.zip
Fix VC++ compilation error.
llvm-svn: 26554
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 57f10663d03..ec778171692 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:
OpenPOWER on IntegriCloud