Remove more superfluous .str() and replace std::string concatenation with Twine.
[oota-llvm.git] / lib / LTO / LTOModule.cpp
index 49aa97d532ec2b007ad42bfbcfc2d1fda8129b92..5cdbca66a80e54fc2a522cc62221f636994e0293 100644 (file)
@@ -267,7 +267,7 @@ LTOModule::objcClassNameFromExpression(const Constant *c, std::string &name) {
       Constant *cn = gvn->getInitializer();
       if (ConstantDataArray *ca = dyn_cast<ConstantDataArray>(cn)) {
         if (ca->isCString()) {
-          name = ".objc_class_name_" + ca->getAsCString().str();
+          name = (".objc_class_name_" + ca->getAsCString()).str();
           return true;
         }
       }