CodeGen: remove incorrect temporary Twine

Twines should not be stack allocated.  This somehow managed to get past me.

llvm-svn: 285028
This commit is contained in:
Saleem Abdulrasool 2016-10-24 21:25:57 +00:00
parent 58567d71d0
commit 209150a334
1 changed files with 2 additions and 2 deletions

View File

@ -6282,8 +6282,8 @@ void CGObjCNonFragileABIMac::GenerateCategory(const ObjCCategoryImplDecl *OCD) {
Values[1] = ClassGV;
std::vector<llvm::Constant*> Methods;
Twine ListName =
Interface->getObjCRuntimeNameAsString() + "_$_" + OCD->getName();
std::string ListName =
(Interface->getObjCRuntimeNameAsString() + "_$_" + OCD->getName()).str();
for (const auto *I : OCD->instance_methods())
// Instance methods should always be defined.