diff options
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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. |