[cfe-commits] r54654 - /cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Mike Stump
mrs at apple.com
Mon Aug 11 16:16:20 PDT 2008
Author: mrs
Date: Mon Aug 11 18:16:18 2008
New Revision: 54654
URL: http://llvm.org/viewvc/llvm-project?rev=54654&view=rev
Log:
Fix compilation warning with help from David Chisnall.
Modified:
cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=54654&r1=54653&r2=54654&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Mon Aug 11 18:16:18 2008
@@ -331,10 +331,13 @@
// 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.
More information about the cfe-commits
mailing list