diff options
author | John McCall <rjmccall@apple.com> | 2011-10-17 18:09:15 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-10-17 18:09:15 +0000 |
commit | 0ddaeb9b031070ec64afe92d9892875ac44df427 (patch) | |
tree | fabdbbd8a366601ea6548bdabd2d458b1ac26e1a /lib/CodeGen | |
parent | 4919dfd54e2296ca997e3d1c9dab85976bba8e95 (diff) |
Add a new placeholder type to represent "unbridged"
casts in ARC.
No semantic analysis yet.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142208 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 2 | ||||
-rw-r--r-- | lib/CodeGen/CGRTTI.cpp | 1 | ||||
-rw-r--r-- | lib/CodeGen/CodeGenTypes.cpp | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index c7a9b407d2..b894326bd8 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -329,6 +329,8 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT) { llvm_unreachable("Unexpected builtin type BoundMember"); case BuiltinType::UnknownAny: llvm_unreachable("Unexpected builtin type UnknownAny"); + case BuiltinType::ARCUnbridgedCast: + llvm_unreachable("Unexpected builtin type ARCUnbridgedCast"); case BuiltinType::NullPtr: return DBuilder. createNullPtrType(BT->getName(CGM.getContext().getLangOptions())); diff --git a/lib/CodeGen/CGRTTI.cpp b/lib/CodeGen/CGRTTI.cpp index fbdb298483..c4526fc4cf 100644 --- a/lib/CodeGen/CGRTTI.cpp +++ b/lib/CodeGen/CGRTTI.cpp @@ -199,6 +199,7 @@ static bool TypeInfoIsInStandardLibrary(const BuiltinType *Ty) { case BuiltinType::Dependent: case BuiltinType::BoundMember: case BuiltinType::UnknownAny: + case BuiltinType::ARCUnbridgedCast: llvm_unreachable("asking for RRTI for a placeholder type!"); case BuiltinType::ObjCId: diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp index e0d9218965..3bb5d8a90f 100644 --- a/lib/CodeGen/CodeGenTypes.cpp +++ b/lib/CodeGen/CodeGenTypes.cpp @@ -372,6 +372,7 @@ llvm::Type *CodeGenTypes::ConvertType(QualType T) { case BuiltinType::Dependent: case BuiltinType::BoundMember: case BuiltinType::UnknownAny: + case BuiltinType::ARCUnbridgedCast: llvm_unreachable("Unexpected placeholder builtin type!"); break; } |