Fix likely typo, reduce number of instruction name collisions.
authorNick Lewycky <nicholas@mxc.ca>
Fri, 1 Jul 2011 06:27:03 +0000 (06:27 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Fri, 1 Jul 2011 06:27:03 +0000 (06:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134235 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/ScalarReplAggregates.cpp

index 6fa36277180dad12873212726267844b0feb9b34..87e364d0eb8111ea883cb2b9c0bcc8577b165c52 100644 (file)
@@ -1303,7 +1303,7 @@ static bool tryToMakeAllocaBePromotable(AllocaInst *AI, const TargetData *TD) {
         LoadInst *TrueLoad = 
           Builder.CreateLoad(SI->getTrueValue(), LI->getName()+".t");
         LoadInst *FalseLoad = 
-          Builder.CreateLoad(SI->getFalseValue(), LI->getName()+".t");
+          Builder.CreateLoad(SI->getFalseValue(), LI->getName()+".f");
         
         // Transfer alignment and TBAA info if present.
         TrueLoad->setAlignment(LI->getAlignment());