diff --git a/llvm/include/llvm/Support/MallocAllocator.h b/llvm/include/llvm/Support/MallocAllocator.h index 18ec611e1f7d..ae3dbace05ae 100644 --- a/llvm/include/llvm/Support/MallocAllocator.h +++ b/llvm/include/llvm/Support/MallocAllocator.h @@ -72,7 +72,13 @@ inline bool operator!=(const MallocAllocator&, const MallocAllocator&) { } } // End llvm namespace -#if defined(__linux__) && !(defined (sparc) || defined (_sparc)) +/* + * This specialization was used for optimization earlier, but doesn't appear + * to work with newer versions of GCC, Linux or otherwise. + * + * This can be re-enabled if desired, but by default, it won't be included. + */ +#if 0 namespace std { template struct _Alloc_traits > {