Skip to content

Commit 5fcd66e

Browse files
AlexeySachkovAlexeySotkin
authored andcommitted
Fix build breakage after llvm/llvm-project@777180
Signed-off-by: Alexey Sachkov <[email protected]>
1 parent 290a96a commit 5fcd66e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

options.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ unsigned OpenCLArgList::MakeIndex(llvm::StringRef str) const {
4545
unsigned index = m_argStrings.size();
4646

4747
// Tuck away so we have a reliable const char *.
48-
m_synthesizedStrings.push_back(str);
48+
m_synthesizedStrings.push_back(std::string(str));
4949
m_argStrings.push_back(m_synthesizedStrings.back().c_str());
5050

5151
return index;

0 commit comments

Comments
 (0)