diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-05-29 03:13:47 +0000 |
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-05-29 03:13:47 +0000 |
| commit | d11b42aaadc48faea0fc12dd896e2f2b938b0f8d (patch) | |
| tree | a4899b52e5cb4b2c6d09a24315f60a8520bbcaa8 /llvm/lib/Transforms | |
| parent | d57ea870809ed3d21af8bbd5b2d52a061c592929 (diff) | |
| download | bcm5719-llvm-d11b42aaadc48faea0fc12dd896e2f2b938b0f8d.tar.gz bcm5719-llvm-d11b42aaadc48faea0fc12dd896e2f2b938b0f8d.zip | |
LoopVectorize.cpp: Fix abuse of StringRef on Twine. Twine captures the pointer of StringRef.
llvm-svn: 182820
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 41a22f9bf46..74f69b4c36d 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/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. |

