Remove an unneeded call to c_str().
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 4 Sep 2009 22:44:03 +0000 (22:44 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 4 Sep 2009 22:44:03 +0000 (22:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81051 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetRegistry.h

index 5c89fa597b3177891168980fd2bc2678bf542116..0ee2422c6689452bfeeecdc7452528711527373c 100644 (file)
@@ -373,7 +373,7 @@ namespace llvm {
     }
 
     static unsigned getTripleMatchQuality(const std::string &TT) {
-      if (Triple(TT.c_str()).getArch() == TargetArchType)
+      if (Triple(TT).getArch() == TargetArchType)
         return 20;
       return 0;
     }