1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 11:33:24 +02: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

llvm-svn: 17443
This commit is contained in:
Chris Lattner 2004-11-02 22:18:18 +00:00
parent bd82bbff7c
commit f2976f16ce

View File

@ -107,7 +107,7 @@ TargetData::TargetData(const std::string &ToolName, const Module *M) {
PointerAlignment = PointerSize;
DoubleAlignment = PointerSize;
FloatAlignment = 4;
LongAlignment = 8;
LongAlignment = PointerSize;
IntAlignment = 4;
ShortAlignment = 2;
ByteAlignment = 1;