I love the smell of a freshly broken PowerPC build in the morning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14206 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Utils/Local.cpp b/lib/Transforms/Utils/Local.cpp
index 60adae8..df831c7 100644
--- a/lib/Transforms/Utils/Local.cpp
+++ b/lib/Transforms/Utils/Local.cpp
@@ -26,6 +26,7 @@
// 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
//===----------------------------------------------------------------------===//