File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -86,14 +86,13 @@ namespace {
8686 auto slot = IGF.Builder .CreateInBoundsGEP (IGF.IGM .TupleTypeMetadataTy ,
8787 asTuple, indices);
8888
89- Twine name = [&]() -> Twine {
90- if (auto *constantIndex = dyn_cast<llvm::ConstantInt>(index)) {
91- return metadata->getName () + " ." +
92- Twine (constantIndex->getValue ().getLimitedValue ()) + " .offset" ;
93- } else {
94- return metadata->getName () + " .dynamic.offset" ;
95- }
96- }();
89+ std::string name;
90+ if (auto *constantIndex = dyn_cast<llvm::ConstantInt>(index))
91+ name = (metadata->getName () + " ." +
92+ Twine (constantIndex->getValue ().getLimitedValue ()) + " .offset" )
93+ .str ();
94+ else
95+ name = (metadata->getName () + " .dynamic.offset" ).str ();
9796
9897 return IGF.Builder .CreateLoad (slot, IGF.IGM .Int32Ty ,
9998 IGF.IGM .getPointerAlignment (), name);
You can’t perform that action at this time.
0 commit comments