From: Daniel Dunbar Date: Sat, 27 Sep 2008 06:32:25 +0000 (+0000) Subject: Easy fix for nasty bug, exception data buffer had wrong type == wrong X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10004916dbda1f6f5d3d0dbea8c1e70b6466ab63;p=clang Easy fix for nasty bug, exception data buffer had wrong type == wrong (smaller) size == garbage on stack == heisenbugs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56750 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp index 9e5940c5dc..d458e463ac 100644 --- a/lib/CodeGen/CGObjCMac.cpp +++ b/lib/CodeGen/CGObjCMac.cpp @@ -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,