diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-04-06 10:43:44 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-04-06 10:43:44 +0000 |
commit | 4e58263459d7f9ae862b52adafe585b66411272f (patch) | |
tree | e4e5f2a9a370b841a954dbb277e6bd3d2e9467c5 /include/llvm/Support/type_traits.h | |
parent | 9a2b6e1d7b26069fca0cac7766fbe1b29d710f23 (diff) | |
download | external_llvm-4e58263459d7f9ae862b52adafe585b66411272f.zip external_llvm-4e58263459d7f9ae862b52adafe585b66411272f.tar.gz external_llvm-4e58263459d7f9ae862b52adafe585b66411272f.tar.bz2 |
DenseMap: Perform the pod-like object optimization when the value type is POD-like, not the DenseMapInfo for it.
Purge now unused template arguments. This has been broken since r91421. Patch by Lubos Lunak!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154170 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/type_traits.h')
-rw-r--r-- | include/llvm/Support/type_traits.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/type_traits.h b/include/llvm/Support/type_traits.h index 0cb8e97..a3a551f 100644 --- a/include/llvm/Support/type_traits.h +++ b/include/llvm/Support/type_traits.h @@ -66,7 +66,7 @@ struct isPodLike { // std::pair's are pod-like if their elements are. template<typename T, typename U> struct isPodLike<std::pair<T, U> > { - static const bool value = isPodLike<T>::value & isPodLike<U>::value; + static const bool value = isPodLike<T>::value && isPodLike<U>::value; }; |