]> granicus.if.org Git - clang/commitdiff
Easy fix for nasty bug, exception data buffer had wrong type == wrong
authorDaniel Dunbar <daniel@zuster.org>
Sat, 27 Sep 2008 06:32:25 +0000 (06:32 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 27 Sep 2008 06:32:25 +0000 (06:32 +0000)
(smaller) size == garbage on stack == heisenbugs.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56750 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGObjCMac.cpp

index 9e5940c5dcc00f5615c93329b8d0570b99dc08e4..d458e463accb44c5e51904904329637367042b3a 100644 (file)
@@ -2193,7 +2193,7 @@ ObjCTypesHelper::ObjCTypesHelper(CodeGen::CodeGenModule &cgm)
  
   // Exceptions
   const llvm::Type *StackPtrTy = 
-    llvm::PointerType::getUnqual(llvm::ArrayType::get(llvm::Type::Int8Ty, 4));
+    llvm::ArrayType::get(llvm::PointerType::getUnqual(llvm::Type::Int8Ty), 4);
                            
   ExceptionDataTy = 
     llvm::StructType::get(llvm::ArrayType::get(llvm::Type::Int32Ty,