https://llvm.org/bugs/show_bug.cgi?id=24615
Bug ID: 24615 Summary: TypeLocBuilder::grow(size_t) must create an explicitly aligned buffer Product: clang Version: 3.6 Hardware: Sun OS: Solaris Status: NEW Severity: normal Priority: P Component: Frontend Assignee: unassignedclangb...@nondot.org Reporter: stefan.tele...@oracle.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified In TypeLocBuilder::grow(size_t) (${top_srcdir}/tools/clang/lib/Sema/TypeLocBuilder.cpp) the newly resized buffer is currently allocated with: char *NewBuffer = new char[NewCapacity]; This does not guarantee that the resulting new buffer will be aligned on the alignment boundary set in BufferMaxAlignment. But, we must ensure that this resulting NewBuffer is indeed aligned on the boundary indicated by BufferMaxAlignment. I have a patch for this defect, and I will provide it here very shortly. We have a number of clang and llvm patches for Solaris, and we have every intention of contributing them to the project. This is just one of several bugs with follow-up patches that I will be filing. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs