File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2573,10 +2573,12 @@ void CodeGenModule::ConstructAttributeList(StringRef Name,
2573
2573
if (auto *ModularFormat = TargetDecl->getAttr <ModularFormatAttr>()) {
2574
2574
// TODO: Error checking
2575
2575
FormatAttr *Format = TargetDecl->getAttr <FormatAttr>();
2576
+ StringRef Type = Format->getType ()->getName ();
2576
2577
std::string FormatIdx = std::to_string (Format->getFormatIdx ());
2577
2578
std::string FirstArg = std::to_string (Format->getFirstArg ());
2578
2579
SmallVector<StringRef> Args = {
2579
- FormatIdx, FirstArg, ModularFormat->getModularImplFn ()->getName (),
2580
+ Type, FormatIdx, FirstArg,
2581
+ ModularFormat->getModularImplFn ()->getName (),
2580
2582
ModularFormat->getImplName ()};
2581
2583
llvm::append_range (Args, ModularFormat->aspects ());
2582
2584
FuncAttrs.addAttribute (" modular-format" , llvm::join (Args, " ," ));
You can’t perform that action at this time.
0 commit comments