summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-04-09 19:47:21 +0000
committerChris Lattner <sabre@nondot.org>2005-04-09 19:47:21 +0000
commit3a7f5768c56e347ca50f719f1eb6554a715632c6 (patch)
tree38907413715ddbf91012c252084fa8fef03a60ec /llvm/lib
parenta55a5f258047859d66d7d4c061a04e273098cf9a (diff)
downloadbcm5719-llvm-3a7f5768c56e347ca50f719f1eb6554a715632c6.tar.gz
bcm5719-llvm-3a7f5768c56e347ca50f719f1eb6554a715632c6.zip
Fix a crash on 173.applu by asking for a constant bigger than 32-bits.
llvm-svn: 21185
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp b/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp
index e137839a269..3d84865b826 100644
--- a/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp
+++ b/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp
@@ -3742,7 +3742,7 @@ void PPC32ISel::emitGEPOperation(MachineBasicBlock *MBB,
User::op_iterator IdxEnd = GEPI->op_end();
const TargetData &TD = TM.getTargetData();
const Type *Ty = Src->getType();
- int64_t constValue = 0;
+ int32_t constValue = 0;
// Record the operations to emit the GEP in a vector so that we can emit them
// after having analyzed the entire instruction.
OpenPOWER on IntegriCloud