We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 290a96a commit 5fcd66eCopy full SHA for 5fcd66e
options.cpp
@@ -45,7 +45,7 @@ unsigned OpenCLArgList::MakeIndex(llvm::StringRef str) const {
45
unsigned index = m_argStrings.size();
46
47
// Tuck away so we have a reliable const char *.
48
- m_synthesizedStrings.push_back(str);
+ m_synthesizedStrings.push_back(std::string(str));
49
m_argStrings.push_back(m_synthesizedStrings.back().c_str());
50
51
return index;
0 commit comments