summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-10-17 18:09:15 +0000
committerJohn McCall <rjmccall@apple.com>2011-10-17 18:09:15 +0000
commit8a6b59ad97a1ed84daac9d14605521ba36ccd8dd (patch)
tree044c58f41c1960215163f83755823effcd45c7f5 /clang/lib/CodeGen
parent73081309c3a219ba091bc261bf5f83d86b4aeacd (diff)
downloadbcm5719-llvm-8a6b59ad97a1ed84daac9d14605521ba36ccd8dd.tar.gz
bcm5719-llvm-8a6b59ad97a1ed84daac9d14605521ba36ccd8dd.zip
Add a new placeholder type to represent "unbridged"
casts in ARC. No semantic analysis yet. llvm-svn: 142208
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp2
-rw-r--r--clang/lib/CodeGen/CGRTTI.cpp1
-rw-r--r--clang/lib/CodeGen/CodeGenTypes.cpp1
3 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index c7a9b407d26..b894326bd88 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/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/clang/lib/CodeGen/CGRTTI.cpp b/clang/lib/CodeGen/CGRTTI.cpp
index fbdb2984830..c4526fc4cf7 100644
--- a/clang/lib/CodeGen/CGRTTI.cpp
+++ b/clang/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/clang/lib/CodeGen/CodeGenTypes.cpp b/clang/lib/CodeGen/CodeGenTypes.cpp
index e0d92189658..3bb5d8a90fd 100644
--- a/clang/lib/CodeGen/CodeGenTypes.cpp
+++ b/clang/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;
}
OpenPOWER on IntegriCloud