From 553283e57d385fc5f3bb34f41911b9a15f1ccf81 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Tue, 15 Apr 2014 08:14:48 +0000 Subject: [PATCH] [Allocator] Fix r206256 which got the enabling case backwards on these overloads. This doesn't matter *that* much yet, but it will in a subsequent patch. I had tested the original pattern, but not my attempt to pacify MSVC. This at least appears to work. Still fixing the rest of the fallout in the final patch that uses these overloads, but it will follow shortly. llvm-svn: 206259 --- llvm/include/llvm/Support/Allocator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Support/Allocator.h b/llvm/include/llvm/Support/Allocator.h index 034661f4bcd2..617ab9fd7a3d 100644 --- a/llvm/include/llvm/Support/Allocator.h +++ b/llvm/include/llvm/Support/Allocator.h @@ -99,7 +99,7 @@ public: /// \brief Deallocate space for one object without destroying it. template typename std::enable_if< - std::is_same::type, void>::value, void>::type + !std::is_same::type, void>::value, void>::type Deallocate(T *Ptr) { Deallocate(static_cast(Ptr)); } @@ -107,7 +107,7 @@ public: /// \brief Allocate space for an array of objects without constructing them. template typename std::enable_if< - std::is_same::type, void>::value, void>::type + !std::is_same::type, void>::value, void>::type Deallocate(T *Ptr, size_t /*Num*/) { Deallocate(static_cast(Ptr)); }