Ensure that gep_upgrade zext instructions we insert have unique names.
authorReid Spencer <rspencer@reidspencer.com>
Fri, 26 Jan 2007 19:58:59 +0000 (19:58 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 26 Jan 2007 19:58:59 +0000 (19:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33544 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-upgrade/UpgradeParser.y

index ab078ba2d843646bb25cff1b53853549e5926e3b..14183a40cbc2953e37b5dd6d142042a4f6451daf 100644 (file)
@@ -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)