summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-02 22:18:18 +0000
committerChris Lattner <sabre@nondot.org>2004-11-02 22:18:18 +0000
commitcff3b41e95789860942d8e6e6d9ec4552bebcb20 (patch)
tree291c9300d9f3aa547aac626884fae85b58a561f1
parent444be61ea6d26820e96a0255714ff01d6333982c (diff)
downloadbcm5719-llvm-cff3b41e95789860942d8e6e6d9ec4552bebcb20.tar.gz
bcm5719-llvm-cff3b41e95789860942d8e6e6d9ec4552bebcb20.zip
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
-rw-r--r--llvm/lib/Target/TargetData.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetData.cpp b/llvm/lib/Target/TargetData.cpp
index a57d6ba2fba..594c33588ef 100644
--- a/llvm/lib/Target/TargetData.cpp
+++ b/llvm/lib/Target/TargetData.cpp
@@ -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;
OpenPOWER on IntegriCloud