From 0cf4adbcef584cb56254e253b47315b4c3d073ec Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 29 May 2013 03:13:47 +0000 Subject: 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 --- lib/Transforms/Vectorize/LoopVectorize.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/Transforms/Vectorize/LoopVectorize.cpp') 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. -- cgit v1.2.3