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)); }