diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-12-25 20:00:17 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-12-25 20:00:17 +0000 |
commit | eba05b2e396e1474f7bd6e8e8e1bd7752effef4d (patch) | |
tree | 84bb8feaaebede1ff2c5a9ff768c43df2c495927 /lib/AST/Type.cpp | |
parent | 19b4a714de8841aed2727031674597f7efb62ce2 (diff) |
constexpr: perform zero-initialization prior to / instead of performing a
constructor call when appropriate. Thanks to Eli for spotting this.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147271 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r-- | lib/AST/Type.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index d375e7c59d..ddeeacd551 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -1126,10 +1126,6 @@ bool Type::isLiteralType() const { if (BaseTy->isIncompleteType()) return false; - // Objective-C lifetime types are not literal types. - if (BaseTy->isObjCRetainableType()) - return false; - // C++0x [basic.types]p10: // A type is a literal type if it is: // -- a scalar type; or |