aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPC32ISelSimple.cpp
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
commit27ee3a332d0b0e01109b907a73e932d1886a8db9 (patch)
treef64ac30c1e4c1dd9c72ae618e64a8c260efce1ff /lib/Target/PowerPC/PPC32ISelSimple.cpp
parentf429a3e0f60ad9e372a3291629bfb27d35f1b33e (diff)
Fix a crash on 173.applu by asking for a constant bigger than 32-bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21185 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPC32ISelSimple.cpp')
-rw-r--r--lib/Target/PowerPC/PPC32ISelSimple.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPC32ISelSimple.cpp b/lib/Target/PowerPC/PPC32ISelSimple.cpp
index e137839a26..3d84865b82 100644
--- a/lib/Target/PowerPC/PPC32ISelSimple.cpp
+++ b/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.