Twines should not be stack allocated. This somehow managed to get past me.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285028
91177308-0d34-0410-b5e6-
96231b3b80d8
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.