aboutsummaryrefslogtreecommitdiff
path: root/backend/unittests/Target/RISCVAssemblyPrinterTest.cpp
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-13 06:52:15 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-13 06:52:15 +0800
commitaa7c85ca71859aab15bdf1e6dc1ea3a5aa5d1e28 (patch)
tree20d94c4debfe4900e362c6c7f8443bcfbd58ec28 /backend/unittests/Target/RISCVAssemblyPrinterTest.cpp
parentd62f022c92fcc3ebe2269273628943a0089683fd (diff)
downloadrcc-project-aa7c85ca71859aab15bdf1e6dc1ea3a5aa5d1e28.tar.gz
rcc-project-aa7c85ca71859aab15bdf1e6dc1ea3a5aa5d1e28.tar.xz
[Support] Split APInt and APFloat ownership
Diffstat (limited to 'backend/unittests/Target/RISCVAssemblyPrinterTest.cpp')
-rw-r--r--backend/unittests/Target/RISCVAssemblyPrinterTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/unittests/Target/RISCVAssemblyPrinterTest.cpp b/backend/unittests/Target/RISCVAssemblyPrinterTest.cpp
index e40ce8a..3794227 100644
--- a/backend/unittests/Target/RISCVAssemblyPrinterTest.cpp
+++ b/backend/unittests/Target/RISCVAssemblyPrinterTest.cpp
@@ -45,7 +45,7 @@ makeObject(std::string Symbol, std::uint64_t Size, std::uint64_t Alignment,
}
[[nodiscard]] rcc::Expected<void> addObjects(rcc::CompilationUnit &Unit) {
- auto AnswerValue = rcc::IntegerImmediate::fromUnsigned(32, 42);
+ auto AnswerValue = rcc::APInt::fromUnsigned(32, 42);
if (!AnswerValue)
return std::unexpected(AnswerValue.error());
auto Answer =