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