forked from OSchip/llvm-project
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:
parent
58567d71d0
commit
209150a334
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue