Skip to content

Commit aa5492e

Browse files
Charlie BartoCaseyCarter
authored andcommitted
[GlobalISel][TableGen] Qualify calls to llvm::format that have ::std:: types as parameters
... to avoid ambiguity in overload resolution when ADL finds `std::format`. Differential Revision: https://reviews.llvm.org/D119213
1 parent 6344848 commit aa5492e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/utils/TableGen/GlobalISel/GIMatchDag.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void GIMatchDag::writeDOTGraph(raw_ostream &OS, StringRef ID) const {
4848
<< Assignment.first << ")";
4949
Separator = ", ";
5050
}
51-
OS << format("|%p|", &N);
51+
OS << llvm::format("|%p|", &N);
5252
writePorts("d", N->getOperandInfo());
5353
OS << "}\"";
5454
if (N->isMatchRoot())
@@ -82,7 +82,7 @@ void GIMatchDag::writeDOTGraph(raw_ostream &OS, StringRef ID) const {
8282
writePorts("s", N->getOperandInfo());
8383
OS << "|" << N->getName() << "|";
8484
N->printDescription(OS);
85-
OS << format("|%p|", &N);
85+
OS << llvm::format("|%p|", &N);
8686
writePorts("d", N->getOperandInfo());
8787
OS << "}\",style=dotted]\n";
8888
}

0 commit comments

Comments
 (0)