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 @@ -2564,10 +2564,12 @@ void CodeGenModule::ConstructAttributeList(StringRef Name,
2564
2564
if (auto *ModularFormat = TargetDecl->getAttr <ModularFormatAttr>()) {
2565
2565
// TODO: Error checking
2566
2566
FormatAttr *Format = TargetDecl->getAttr <FormatAttr>();
2567
+ StringRef Type = Format->getType ()->getName ();
2567
2568
std::string FormatIdx = std::to_string (Format->getFormatIdx ());
2568
2569
std::string FirstArg = std::to_string (Format->getFirstArg ());
2569
2570
SmallVector<StringRef> Args = {
2570
- FormatIdx, FirstArg, ModularFormat->getModularImplFn ()->getName (),
2571
+ Type, FormatIdx, FirstArg,
2572
+ ModularFormat->getModularImplFn ()->getName (),
2571
2573
ModularFormat->getImplName ()};
2572
2574
llvm::append_range (Args, ModularFormat->aspects ());
2573
2575
FuncAttrs.addAttribute (" modular-format" , llvm::join (Args, " ," ));
You can’t perform that action at this time.
0 commit comments