[LLVMbugs] [Bug 18427] New: Bad alignment in clang::APValue

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 8 18:20:57 PST 2014


            Bug ID: 18427
           Summary: Bad alignment in clang::APValue
           Product: clang
           Version: trunk
          Hardware: Sun
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: stoklund at 2pi.dk
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

clang::APValue contains this code:

  union {
    void *Aligner;
    char Data[MaxSize];

  APSInt &getInt() {
    assert(isInt() && "Invalid accessor");
    return *(APSInt*)(char*)Data;

APSInt has a uint64_t member which can have larger alignment than a pointer.

This makes clang crash on SPARC.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140109/76cac0d5/attachment.html>

More information about the llvm-bugs mailing list