Skip to content

Commit 195e640

Browse files
[TableGen] Fix the build
This patch fixes: llvm/utils/TableGen/Common/CodeGenRegisters.cpp:653:57: error: 'getValues' is deprecated: Use getElements instead [-Werror,-Wdeprecated-declarations]
1 parent 322d019 commit 195e640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/TableGen/Common/CodeGenRegisters.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ struct TupleExpander : SetTheory::Expander {
650650

651651
// Take the cost list of the first register in the tuple.
652652
const ListInit *CostList = Proto->getValueAsListInit("CostPerUse");
653-
SmallVector<const Init *, 2> CostPerUse(CostList->getValues());
653+
SmallVector<const Init *, 2> CostPerUse(CostList->getElements());
654654

655655
const StringInit *AsmName = StringInit::get(RK, "");
656656
if (!RegNames.empty()) {

0 commit comments

Comments
 (0)