commit | eb19b8f58b12532e736051fee46dcf2115a4888d | [log] [tgz] |
---|---|---|
author | Chandler Carruth <chandlerc@gmail.com> | Tue Apr 15 06:29:04 2014 +0000 |
committer | Chandler Carruth <chandlerc@gmail.com> | Tue Apr 15 06:29:04 2014 +0000 |
tree | 1a50a0fa17a5ad797dcdcae844cb7e61eddca75f | |
parent | 9eb71e20aead0f5642068e7582cef994258a7d69 [diff] |
[Allocator] Constrain the Deallocate templated overloads to only apply to types which we can compute the size of. The comparison with zero isn't actually interesting here, it's mostly about putting sizeof into a sfinae context. This is particular important for Deallocate as otherwise the void* overload can quickly become ambiguous. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206251 91177308-0d34-0410-b5e6-96231b3b80d8