Fix VC++ compilation error.

llvm-svn: 26554
This commit is contained in:
Jeff Cohen 2006-03-05 21:43:37 +00:00
parent af25c7e4f3
commit 55e2aac24b
1 changed files with 5 additions and 0 deletions

View File

@ -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: