diff options
author | Mike Stump <mrs@apple.com> | 2008-08-11 23:16:18 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2008-08-11 23:16:18 +0000 |
commit | 0d8a13d823b644d94ae5f8db275be3592b9bbbfc (patch) | |
tree | a3485256327b46cd0e11d7191058f93d5ae40c38 /lib/CodeGen/CodeGenModule.cpp | |
parent | de9d55a0dbee338bd4aed8764dd9b998c9f48200 (diff) |
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
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. |