diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-30 17:37:43 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-30 17:37:43 +0000 |
commit | 132f78395a9b15aa3aa1a54951060871ca5fefc2 (patch) | |
tree | be5462895e1e9ca860653b133bbf95dbffab1517 /llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp | |
parent | 5262314b8d4b6a944a62744d65f20136986eb6ac (diff) | |
download | bcm5719-llvm-132f78395a9b15aa3aa1a54951060871ca5fefc2.tar.gz bcm5719-llvm-132f78395a9b15aa3aa1a54951060871ca5fefc2.zip |
Twines: Don't allow implicit conversion from integers, this is too tricky.
llvm-svn: 77605
Diffstat (limited to 'llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp index 7f8d2026e34..5645110db66 100644 --- a/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp +++ b/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp @@ -867,7 +867,7 @@ bool PromoteMem2Reg::QueuePhiNode(BasicBlock *BB, unsigned AllocaNo, // Create a PhiNode using the dereferenced type... and add the phi-node to the // BasicBlock. PN = PHINode::Create(Allocas[AllocaNo]->getAllocatedType(), - Allocas[AllocaNo]->getName() + "." + Version++, + Allocas[AllocaNo]->getName() + "." + Twine(Version++), BB->begin()); ++NumPHIInsert; PhiToAllocaMap[PN] = AllocaNo; |