1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

LoopVectorize.cpp: Fix abuse of StringRef on Twine. Twine captures the pointer of StringRef.

llvm-svn: 182820
This commit is contained in:
NAKAMURA Takumi 2013-05-29 03:13:47 +00:00
parent 4514caf74f
commit 0271817249

View File

@ -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.