aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms/Utils/Local.cpp')
-rw-r--r--lib/Transforms/Utils/Local.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/Utils/Local.cpp b/lib/Transforms/Utils/Local.cpp
index 60adae862a..df831c78a4 100644
--- a/lib/Transforms/Utils/Local.cpp
+++ b/lib/Transforms/Utils/Local.cpp
@@ -26,6 +26,7 @@ using namespace llvm;
// in a big way). This is a quick fix to get things compiling, until one of
// us has time to write a more complicated autoconf test.
extern "C" int isnan (double d);
+namespace std { int isnan (double d) { return ::isnan (d); } }
#endif
//===----------------------------------------------------------------------===//