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 | 52f026058260893a505186cd18c31c8ad5257680 (patch) | |
tree | e96f0af76d2c901cb70a43aefc9427e60c9701f8 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 2aa0ff27aaab552442a09d5b5f8ac7085e01d532 (diff) | |
download | bcm5719-llvm-52f026058260893a505186cd18c31c8ad5257680.tar.gz bcm5719-llvm-52f026058260893a505186cd18c31c8ad5257680.zip |
Fix compilation warning with help from David Chisnall.
llvm-svn: 54654
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index fb873c2a67b..633b7b8dad7 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/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. |