[llvm-branch-commits] [cfe-branch] r134792 - in /cfe/branches/type-system-rewrite/lib/CodeGen: CGObjC.cpp CodeGenModule.cpp
Chris Lattner
sabre at nondot.org
Fri Jul 8 22:13:50 PDT 2011
Author: lattner
Date: Sat Jul 9 00:13:50 2011
New Revision: 134792
URL: http://llvm.org/viewvc/llvm-project?rev=134792&view=rev
Log:
remove some unneeded explicit calls to UpdateCompletedType
Modified:
cfe/branches/type-system-rewrite/lib/CodeGen/CGObjC.cpp
cfe/branches/type-system-rewrite/lib/CodeGen/CodeGenModule.cpp
Modified: cfe/branches/type-system-rewrite/lib/CodeGen/CGObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/lib/CodeGen/CGObjC.cpp?rev=134792&r1=134791&r2=134792&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/lib/CodeGen/CGObjC.cpp (original)
+++ cfe/branches/type-system-rewrite/lib/CodeGen/CGObjC.cpp Sat Jul 9 00:13:50 2011
@@ -1041,15 +1041,6 @@
// Otherwise, initialize the loop.
EmitBlock(LoopInitBB);
-
-#if 1
- abort();
-#else
- // Make sure StateTy has been laid out.
- CodeGenTypes &Types = CGM.getTypes();
- Types.UpdateCompletedType(cast<RecordType>(StateTy.getTypePtr())->getDecl());
-#endif
-
// Save the initial mutations value. This is the value at an
// address that was written into the state object by
// countByEnumeratingWithState:objects:count:.
Modified: cfe/branches/type-system-rewrite/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/lib/CodeGen/CodeGenModule.cpp?rev=134792&r1=134791&r2=134792&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/branches/type-system-rewrite/lib/CodeGen/CodeGenModule.cpp Sat Jul 9 00:13:50 2011
@@ -1710,13 +1710,6 @@
QualType CFTy = getContext().getCFConstantStringType();
-#if 1
- abort();
-#else
- // Make sure the class has been laid out.
- UpdateCompletedType(cast<RecordType>(CFTy.getTypePtr())->getDecl());
-#endif
-
const llvm::StructType *STy =
cast<llvm::StructType>(getTypes().ConvertType(CFTy));
More information about the llvm-branch-commits
mailing list