aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/MallocAllocator.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Support/MallocAllocator.h')
-rw-r--r--include/llvm/Support/MallocAllocator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Support/MallocAllocator.h b/include/llvm/Support/MallocAllocator.h
index c17517e..18ec611 100644
--- a/include/llvm/Support/MallocAllocator.h
+++ b/include/llvm/Support/MallocAllocator.h
@@ -72,6 +72,7 @@ inline bool operator!=(const MallocAllocator<T>&, const MallocAllocator<T>&) {
}
} // End llvm namespace
+#if defined(__linux__) && !(defined (sparc) || defined (_sparc))
namespace std {
template<typename Type, typename Type2>
struct _Alloc_traits<Type, ::llvm::MallocAllocator<Type2> > {
@@ -81,5 +82,6 @@ namespace std {
typedef ::llvm::MallocAllocator<Type> allocator_type;
};
}
+#endif
#endif