[cfe-commits] Patch for Bug 13606

Eli Friedman eli.friedman at gmail.com
Tue Aug 14 13:02:49 PDT 2012


On Tue, Aug 14, 2012 at 12:52 PM, John Criswell <criswell at illinois.edu> wrote:
> Dear All,
>
> Attached is a patch to partially fix the alignment attribute bug in
> PR#13606:
>
> http://llvm.org/bugs/show_bug.cgi?id=13606
>
> I say partially because the alignment should really be unsigned, but since
> CharUnits uses a signed value, it isn't clear to me how to fix the bug
> properly (i.e., it requires a greater knowledge of clang than I current have
> time to learn).  That said, permitting alignment up to half the address
> space should be a significant improvement.
>
> If this patch meets your approval, please let me know, and I can commit it
> (I already have commit access to the LLVM SVN repository).

Please don't use "long"; use int64_t.  "long" doesn't have a
consistent size across the platforms we support.

Please include a testcase.

Otherwise, looks fine.

-Eli



More information about the cfe-commits mailing list