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:
parent
4514caf74f
commit
0271817249
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user