summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CodeGenTypes.cpp4
-rw-r--r--clang/lib/Sema/SemaDecl.cpp4
2 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/CodeGenTypes.cpp b/clang/lib/CodeGen/CodeGenTypes.cpp
index 7dfa2f850c6..9074e8179c0 100644
--- a/clang/lib/CodeGen/CodeGenTypes.cpp
+++ b/clang/lib/CodeGen/CodeGenTypes.cpp
@@ -309,10 +309,6 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) {
// late-bound ivars.
ObjCInterfaceType OIT = cast<ObjCInterfaceType>(Ty);
std::vector<const llvm::Type*> IvarTypes;
- // Pointer to the class. This is just a placeholder. Operations that
- // actually use the isa pointer should cast it to the Class type provided
- // by the runtime.
- IvarTypes.push_back(llvm::PointerType::getUnqual(llvm::Type::Int8Ty));
CollectObjCIvarTypes(OIT.getDecl(), IvarTypes);
return llvm::StructType::get(IvarTypes);
}
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index ee1aad54ed0..c2874106f4e 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -1751,10 +1751,6 @@ void Sema::ActOnDefs(Scope *S, SourceLocation DeclStart,
Diag(DeclStart, diag::err_undef_interface, ClassName->getName());
return;
}
- // Add the isa pointer
- Decls.push_back(FieldDecl::Create(Context, SourceLocation(),
- &Context.Idents.get("isa"),
- Context.getObjCClassType()));
// Collect the instance variables
CollectIvars(Class, Decls);
}
OpenPOWER on IntegriCloud