[cfe-commits] [libcxxabi] r145277 - /libcxxabi/trunk/src/cxa_demangle.cpp
Howard Hinnant
hhinnant at apple.com
Mon Nov 28 13:03:21 PST 2011
Author: hhinnant
Date: Mon Nov 28 15:03:21 2011
New Revision: 145277
URL: http://llvm.org/viewvc/llvm-project?rev=145277&view=rev
Log:
Add alignment requirement to char buffer
Modified:
libcxxabi/trunk/src/cxa_demangle.cpp
Modified: libcxxabi/trunk/src/cxa_demangle.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/cxa_demangle.cpp?rev=145277&r1=145276&r2=145277&view=diff
==============================================================================
--- libcxxabi/trunk/src/cxa_demangle.cpp (original)
+++ libcxxabi/trunk/src/cxa_demangle.cpp Mon Nov 28 15:03:21 2011
@@ -15009,7 +15009,7 @@
return NULL;
}
const size_t bs = 64 * 1024;
- char static_buf[bs];
+ __attribute((aligned(16))) char static_buf[bs];
buf = __libcxxabi::__demangle(__libcxxabi::__demangle(mangled_name,
static_buf, bs),
More information about the cfe-commits
mailing list