aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-upgrade
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-26 19:58:59 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-26 19:58:59 +0000
commitaa777bd8ad28c29af76f4453b95ac6bfe8937c04 (patch)
treefaca80a0471614c9a8c57e431fa157d7ba466e48 /tools/llvm-upgrade
parent1a92d941b3541f0c361caad499d0eb37a8339453 (diff)
downloadexternal_llvm-aa777bd8ad28c29af76f4453b95ac6bfe8937c04.zip
external_llvm-aa777bd8ad28c29af76f4453b95ac6bfe8937c04.tar.gz
external_llvm-aa777bd8ad28c29af76f4453b95ac6bfe8937c04.tar.bz2
Ensure that gep_upgrade zext instructions we insert have unique names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33544 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-upgrade')
-rw-r--r--tools/llvm-upgrade/UpgradeParser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-upgrade/UpgradeParser.y b/tools/llvm-upgrade/UpgradeParser.y
index ab078ba..14183a4 100644
--- a/tools/llvm-upgrade/UpgradeParser.y
+++ b/tools/llvm-upgrade/UpgradeParser.y
@@ -1175,7 +1175,7 @@ const Type* upgradeGEPIndices(const Type* PTy,
cast<Constant>(Index), Type::Int64Ty);
else
Index = CastInst::create(Instruction::ZExt, Index, Type::Int64Ty,
- "gep_upgrade", CurBB);
+ makeNameUnique("gep_upgrade"), CurBB);
}
// Add to the CIndices list, if requested.
if (CIndices)