]> granicus.if.org Git - clang/commitdiff
simplify
authorChris Lattner <sabre@nondot.org>
Thu, 14 Jul 2011 18:45:41 +0000 (18:45 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 14 Jul 2011 18:45:41 +0000 (18:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135170 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index a3cdef11ac06cc0f2535eb760d2d2e1b891caa0a..3518ea6f79868f2c164362b7545ad58dbff86355 100644 (file)
@@ -3056,7 +3056,7 @@ TargetInfo *TargetInfo::CreateTargetInfo(Diagnostic &Diags,
   for (llvm::StringMap<bool>::const_iterator it = Features.begin(),
          ie = Features.end(); it != ie; ++it)
     Opts.Features.push_back(std::string(it->second ? "+" : "-") +
-                            llvm::StringRef(it->first()).str());
+                            it->first().str());
   Target->HandleTargetFeatures(Opts.Features);
 
   return Target.take();