summaryrefslogtreecommitdiff
path: root/lib/Transforms/Vectorize/LoopVectorize.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-05-29 03:13:47 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-05-29 03:13:47 +0000
commit0cf4adbcef584cb56254e253b47315b4c3d073ec (patch)
tree12ceaa93287a7f4e02122762709d6bc447b4a101 /lib/Transforms/Vectorize/LoopVectorize.cpp
parent51c292a3605a0cf7be24e4b7dc40c2b8a740006c (diff)
downloadllvm-0cf4adbcef584cb56254e253b47315b4c3d073ec.tar.gz
llvm-0cf4adbcef584cb56254e253b47315b4c3d073ec.tar.bz2
llvm-0cf4adbcef584cb56254e253b47315b4c3d073ec.tar.xz
LoopVectorize.cpp: Fix abuse of StringRef on Twine. Twine captures the pointer of StringRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182820 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r--lib/Transforms/Vectorize/LoopVectorize.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp
index 41a22f9bf4..74f69b4c36 100644
--- a/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -812,8 +812,7 @@ struct LoopVectorizeHints {
for (unsigned i = 1, ie = LoopID->getNumOperands(); i < ie; ++i)
Vals.push_back(LoopID->getOperand(i));
- Twine Name = Prefix() + "width";
- Vals.push_back(createHint(Context, Name.str(), Width));
+ Vals.push_back(createHint(Context, Twine(Prefix(), "width").str(), Width));
MDNode *NewLoopID = MDNode::get(Context, Vals);
// Set operand 0 to refer to the loop id itself.