From aa777bd8ad28c29af76f4453b95ac6bfe8937c04 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Fri, 26 Jan 2007 19:58:59 +0000 Subject: [PATCH] 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 --- tools/llvm-upgrade/UpgradeParser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/llvm-upgrade/UpgradeParser.y b/tools/llvm-upgrade/UpgradeParser.y index ab078ba2d84..14183a40cbc 100644 --- a/tools/llvm-upgrade/UpgradeParser.y +++ b/tools/llvm-upgrade/UpgradeParser.y @@ -1175,7 +1175,7 @@ const Type* upgradeGEPIndices(const Type* PTy, cast(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) -- 2.34.1