[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Jeff Cohen jeffc at jolt-lang.org
Sun Mar 5 13:43:50 PST 2006



Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAG.cpp updated: 1.267 -> 1.268
---
Log message:

Fix VC++ compilation error.

---
Diffs of the changes:  (+5 -0)

 SelectionDAG.cpp |    5 +++++
 1 files changed, 5 insertions(+)


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.267 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.268
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.267	Sat Mar  4 23:30:57 2006
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp	Sun Mar  5 15:43:37 2006
@@ -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:






More information about the llvm-commits mailing list