From 0d8a13d823b644d94ae5f8db275be3592b9bbbfc Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Mon, 11 Aug 2008 23:16:18 +0000 Subject: Fix compilation warning with help from David Chisnall. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54654 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/CodeGen/CodeGenModule.cpp') diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index fb873c2a67..633b7b8dad 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -331,10 +331,13 @@ void CodeGenModule::EmitObjCClassImplementation( // this should probably be something different (size just of instance // varaibles in this class, not superclasses?). int instanceSize = 0; - const llvm::Type *ObjTy; + const llvm::Type *ObjTy = 0; if (!Runtime->LateBoundIVars()) { ObjTy = getTypes().ConvertType(Context.getObjCInterfaceType(ClassDecl)); instanceSize = TheTargetData.getABITypeSize(ObjTy); + } else { + // This is required by newer ObjC runtimes. + assert(0 && "Late-bound instance variables not yet supported"); } // Collect information about instance variables. -- cgit v1.2.3-18-g5258