summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenInstruction.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-11-30 10:01:11 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-11-30 10:01:11 +0000
commite6ba5efa80465f27463af3146ae59144a06742d1 (patch)
tree9b8951c50c28f9bfb829a5a99bd1d3fc5d79799b /llvm/utils/TableGen/CodeGenInstruction.cpp
parentd13634016677b003369f7cba919496ed7fe75870 (diff)
downloadbcm5719-llvm-e6ba5efa80465f27463af3146ae59144a06742d1.tar.gz
bcm5719-llvm-e6ba5efa80465f27463af3146ae59144a06742d1.zip
Apply clang-tidy's 'performance-faster-string-find' check to LLVM.
No functionality change intended. llvm-svn: 288235
Diffstat (limited to 'llvm/utils/TableGen/CodeGenInstruction.cpp')
-rw-r--r--llvm/utils/TableGen/CodeGenInstruction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.cpp b/llvm/utils/TableGen/CodeGenInstruction.cpp
index 792aad87311..4e9f182589b 100644
--- a/llvm/utils/TableGen/CodeGenInstruction.cpp
+++ b/llvm/utils/TableGen/CodeGenInstruction.cpp
@@ -165,7 +165,7 @@ CGIOperandList::ParseOperandName(const std::string &Op, bool AllowWholeOp) {
std::string SubOpName;
// Check to see if this is $foo.bar.
- std::string::size_type DotIdx = OpName.find_first_of(".");
+ std::string::size_type DotIdx = OpName.find_first_of('.');
if (DotIdx != std::string::npos) {
SubOpName = OpName.substr(DotIdx+1);
if (SubOpName.empty())
OpenPOWER on IntegriCloud