diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-12-30 21:15:51 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-12-30 21:15:51 +0000 |
commit | 51201882382fb40c9456a06c7f93d6ddd4a57712 (patch) | |
tree | 2b485b2651f5385cda9709b77582bf4320e3569f /lib/AST/Type.cpp | |
parent | bf3cc73db94f2fbeb57929887bd05d5a0e077f0c (diff) |
Unrevert r147271, reverted in r147361.
Also temporarily remove the assumption from IR gen that we can emit IR for every
constant we can fold, since it isn't currently true in C++11, to fix PR11676.
Original comment from r147271:
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@147384 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 |