diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-12-30 03:11:50 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-12-30 03:11:50 +0000 |
commit | f8c2a33b6e47c494b83e68f02f4ee67ca8fd8e3b (patch) | |
tree | 6194f3b0d54211c78b495dd8d14e1d69a3041679 /lib/AST/Type.cpp | |
parent | d7c56e1114bfe7d461786903bb720d2c6efc05a1 (diff) |
Revert r147271. This fixes PR11676.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147362 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r-- | lib/AST/Type.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index ddeeacd551..d375e7c59d 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -1126,6 +1126,10 @@ 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 |