summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-upgrade/UpgradeParser.y.cvs
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-26 20:31:18 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-26 20:31:18 +0000
commit9f4cdd5d182c3e9491e0c0bbcd8e8feb7c8be7da (patch)
tree5cff3b2bd6f702ae1d74350378660a5914a71473 /llvm/tools/llvm-upgrade/UpgradeParser.y.cvs
parent62b741dc4c0c3764b1d0d7893fc562547c69dfe3 (diff)
downloadbcm5719-llvm-9f4cdd5d182c3e9491e0c0bbcd8e8feb7c8be7da.tar.gz
bcm5719-llvm-9f4cdd5d182c3e9491e0c0bbcd8e8feb7c8be7da.zip
Regenerate.
llvm-svn: 33547
Diffstat (limited to 'llvm/tools/llvm-upgrade/UpgradeParser.y.cvs')
-rw-r--r--llvm/tools/llvm-upgrade/UpgradeParser.y.cvs4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/tools/llvm-upgrade/UpgradeParser.y.cvs b/llvm/tools/llvm-upgrade/UpgradeParser.y.cvs
index 14183a40cbc..30d72711153 100644
--- a/llvm/tools/llvm-upgrade/UpgradeParser.y.cvs
+++ b/llvm/tools/llvm-upgrade/UpgradeParser.y.cvs
@@ -1169,13 +1169,15 @@ const Type* upgradeGEPIndices(const Type* PTy,
// all indices for SequentialType elements. We must retain the same
// semantic (zext) for unsigned types.
if (const IntegerType *Ity = dyn_cast<IntegerType>(Index->getType()))
- if (Ity->getBitWidth() < 64 && (*Indices)[i].S == Unsigned)
+ if (Ity->getBitWidth() < 64 && (*Indices)[i].S == Unsigned) {
if (CIndices)
Index = ConstantExpr::getCast(Instruction::ZExt,
cast<Constant>(Index), Type::Int64Ty);
else
Index = CastInst::create(Instruction::ZExt, Index, Type::Int64Ty,
makeNameUnique("gep_upgrade"), CurBB);
+ VIndices[i] = Index;
+ }
}
// Add to the CIndices list, if requested.
if (CIndices)
OpenPOWER on IntegriCloud