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,
25732573 if (auto *ModularFormat = TargetDecl->getAttr <ModularFormatAttr>()) {
25742574 // TODO: Error checking
25752575 FormatAttr *Format = TargetDecl->getAttr <FormatAttr>();
2576+ StringRef Type = Format->getType ()->getName ();
25762577 std::string FormatIdx = std::to_string (Format->getFormatIdx ());
25772578 std::string FirstArg = std::to_string (Format->getFirstArg ());
25782579 SmallVector<StringRef> Args = {
2579- FormatIdx, FirstArg, ModularFormat->getModularImplFn ()->getName (),
2580+ Type, FormatIdx, FirstArg,
2581+ ModularFormat->getModularImplFn ()->getName (),
25802582 ModularFormat->getImplName ()};
25812583 llvm::append_range (Args, ModularFormat->aspects ());
25822584 FuncAttrs.addAttribute (" modular-format" , llvm::join (Args, " ," ));
You can’t perform that action at this time.
0 commit comments