aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-05-19 12:34:57 -0700
committerKazu Hirata <kazu@google.com>2025-05-19 12:34:57 -0700
commit195e640846765402d1a622006e6a9f9fa3192955 (patch)
treea1d1cb3560a1e5bd7eb6899346bb5cbfe7d18830
parent322d0197f5c5d4cf3a6bb2d86a0112788fd6c529 (diff)
downloadllvm-195e640846765402d1a622006e6a9f9fa3192955.zip
llvm-195e640846765402d1a622006e6a9f9fa3192955.tar.gz
llvm-195e640846765402d1a622006e6a9f9fa3192955.tar.bz2
[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]
-rw-r--r--llvm/utils/TableGen/Common/CodeGenRegisters.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/Common/CodeGenRegisters.cpp b/llvm/utils/TableGen/Common/CodeGenRegisters.cpp
index 2103bc2..0f9cd03 100644
--- a/llvm/utils/TableGen/Common/CodeGenRegisters.cpp
+++ b/llvm/utils/TableGen/Common/CodeGenRegisters.cpp
@@ -650,7 +650,7 @@ struct TupleExpander : SetTheory::Expander {
// Take the cost list of the first register in the tuple.
const ListInit *CostList = Proto->getValueAsListInit("CostPerUse");
- SmallVector<const Init *, 2> CostPerUse(CostList->getValues());
+ SmallVector<const Init *, 2> CostPerUse(CostList->getElements());
const StringInit *AsmName = StringInit::get(RK, "");
if (!RegNames.empty()) {