mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
Fix this function to not say that longs have 8-byte alignment on X86/PPC.
This method is really a gross hack, but at least we can make it work on the targets we support right now. This bug fix stops a crash in a testcase reduced from 176.gcc git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17443 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -107,7 +107,7 @@ TargetData::TargetData(const std::string &ToolName, const Module *M) {
|
|||||||
PointerAlignment = PointerSize;
|
PointerAlignment = PointerSize;
|
||||||
DoubleAlignment = PointerSize;
|
DoubleAlignment = PointerSize;
|
||||||
FloatAlignment = 4;
|
FloatAlignment = 4;
|
||||||
LongAlignment = 8;
|
LongAlignment = PointerSize;
|
||||||
IntAlignment = 4;
|
IntAlignment = 4;
|
||||||
ShortAlignment = 2;
|
ShortAlignment = 2;
|
||||||
ByteAlignment = 1;
|
ByteAlignment = 1;
|
||||||
|
Reference in New Issue
Block a user