]> granicus.if.org Git - clang/commitdiff
Make sure to initialize ExternalProtocolPtrTy
authorDouglas Gregor <dgregor@apple.com>
Tue, 17 Jan 2012 23:38:32 +0000 (23:38 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 17 Jan 2012 23:38:32 +0000 (23:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148358 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGObjCMac.cpp

index 45fe53d9a516f3c0ee1832de697b63ec8b4e00c2..159e927508a4de3e493b6d6550d221c8133f919d 100644 (file)
@@ -4233,7 +4233,8 @@ CGObjCNonFragileABIMac::CGObjCNonFragileABIMac(CodeGen::CodeGenModule &cgm)
 /* *** */
 
 ObjCCommonTypesHelper::ObjCCommonTypesHelper(CodeGen::CodeGenModule &cgm)
-  : VMContext(cgm.getLLVMContext()), CGM(cgm) {
+  : VMContext(cgm.getLLVMContext()), CGM(cgm), ExternalProtocolPtrTy(0) 
+{
   CodeGen::CodeGenTypes &Types = CGM.getTypes();
   ASTContext &Ctx = CGM.getContext();