aboutsummaryrefslogtreecommitdiff
path: root/backend/unittests/Target/RISCVFrameLoweringTest.cpp
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-11 20:16:09 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-11 20:16:09 +0800
commitcd2e88b9618ba7c2f6fcfac901e81f4a302a34c9 (patch)
treedffd656415955f1cc7431e790bec6b4e3c7b58ef /backend/unittests/Target/RISCVFrameLoweringTest.cpp
parentd53149886f39884efe3da5cae67653f9f86132d6 (diff)
downloadrcc-project-cd2e88b9618ba7c2f6fcfac901e81f4a302a34c9.tar.gz
rcc-project-cd2e88b9618ba7c2f6fcfac901e81f4a302a34c9.tar.xz
[CodeGen] Remove redundant numeric call-site IDs
Diffstat (limited to 'backend/unittests/Target/RISCVFrameLoweringTest.cpp')
-rw-r--r--backend/unittests/Target/RISCVFrameLoweringTest.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/backend/unittests/Target/RISCVFrameLoweringTest.cpp b/backend/unittests/Target/RISCVFrameLoweringTest.cpp
index 95d6a18..0525a6d 100644
--- a/backend/unittests/Target/RISCVFrameLoweringTest.cpp
+++ b/backend/unittests/Target/RISCVFrameLoweringTest.cpp
@@ -391,8 +391,6 @@ buildIndirectTail(rcc::MachineFunction &Function, const rcc::TargetDescription &
return std::unexpected(Pending.error());
if (auto Result = Pending->addUse(Callee); !Result)
return std::unexpected(Result.error());
- if (auto Result = Pending->addImmediate(1); !Result)
- return std::unexpected(Result.error());
if (auto Result = Pending->addRegisterMask(std::move(Mask)); !Result)
return std::unexpected(Result.error());
return Pending->build();