From d5b514ed23e370fde2425116f283bf89a6a07596 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206259 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/Allocator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/Support/Allocator.h b/include/llvm/Support/Allocator.h index 034661f4bcd..617ab9fd7a3 100644 --- a/include/llvm/Support/Allocator.h +++ b/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)); } -- 2.34.1