http://llvm.org/bugs/show_bug.cgi?id=18427

            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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to