[libc-commits] [libc] 859de94 - [libc] Fix aarch64 build error in FEnvSafeTest change (#89826)
via libc-commits
libc-commits at lists.llvm.org
Tue Apr 23 13:50:58 PDT 2024
Author: Roland McGrath
Date: 2024-04-23T13:50:55-07:00
New Revision: 859de94536425376244940e190e069a09d797737
URL: https://github.com/llvm/llvm-project/commit/859de94536425376244940e190e069a09d797737
DIFF: https://github.com/llvm/llvm-project/commit/859de94536425376244940e190e069a09d797737.diff
LOG: [libc] Fix aarch64 build error in FEnvSafeTest change (#89826)
Added:
Modified:
libc/test/UnitTest/FEnvSafeTest.cpp
Removed:
################################################################################
diff --git a/libc/test/UnitTest/FEnvSafeTest.cpp b/libc/test/UnitTest/FEnvSafeTest.cpp
index 43aebc3f36e7b3..905aa928937387 100644
--- a/libc/test/UnitTest/FEnvSafeTest.cpp
+++ b/libc/test/UnitTest/FEnvSafeTest.cpp
@@ -36,7 +36,7 @@ void FEnvSafeTest::set_fenv(const fenv_t &fenv) {
void FEnvSafeTest::expect_fenv_eq(const fenv_t &before_fenv,
const fenv_t &after_fenv) {
#if defined(LIBC_TARGET_ARCH_IS_AARCH64)
- using LIBC_NAMESPACE::fputil::FEnv::FPState;
+ using FPState = LIBC_NAMESPACE::fputil::FEnv::FPState;
const FPState &before_state = reinterpret_cast<const FPState &>(before_fenv);
const FPState &after_state = reinterpret_cast<const FPState &>(after_fenv);
More information about the libc-commits
mailing list