From: Reid Spencer Date: Fri, 26 Jan 2007 19:58:59 +0000 (+0000) Subject: Ensure that gep_upgrade zext instructions we insert have unique names. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=aa777bd8ad28c29af76f4453b95ac6bfe8937c04;p=oota-llvm.git 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 --- 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)