Skip to content

Commit fda5ad0

Browse files
committed
Use BaseRecord instead of Clause for getSpellings()
1 parent 01d3e10 commit fda5ad0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/utils/TableGen/Basic/DirectiveEmitter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ static std::vector<RecordWithSpelling>
8383
getSpellings(ArrayRef<const Record *> Records) {
8484
std::vector<RecordWithSpelling> List;
8585
for (const Record *R : Records) {
86-
Clause C(R);
87-
llvm::transform(C.getSpellings(), std::back_inserter(List),
86+
BaseRecord Rec(R);
87+
llvm::transform(Rec.getSpellings(), std::back_inserter(List),
8888
[R](Spelling::Value V) { return std::make_pair(R, V); });
8989
}
9090
return List;

0 commit comments

Comments
 (0)