[ScriptInterpreterPython] find_first_of -> find (NFC)

Follow up to r357198.

llvm-svn: 359138
This commit is contained in:
Jonas Devlieghere
2019-04-24 20:40:24 +00:00
parent 54c8182a3f
commit 10b113e8aa

View File

@@ -2869,7 +2869,8 @@ bool ScriptInterpreterPythonImpl::IsReservedWord(const char *word) {
// filter out a few characters that would just confuse us and that are
// clearly not keyword material anyway
if (word_sr.find_first_of("'\"") != llvm::StringRef::npos)
if (word_sr.find('"') != llvm::StringRef::npos ||
word_sr.find('\'') != llvm::StringRef::npos)
return false;
StreamString command_stream;