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 {
86
86
auto slot = IGF.Builder .CreateInBoundsGEP (IGF.IGM .TupleTypeMetadataTy ,
87
87
asTuple, indices);
88
88
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 ();
97
96
98
97
return IGF.Builder .CreateLoad (slot, IGF.IGM .Int32Ty ,
99
98
IGF.IGM .getPointerAlignment (), name);
You can’t perform that action at this time.
0 commit comments