diff options
author | Weining Lu <luweining@loongson.cn> | 2022-12-08 10:21:16 +0800 |
---|---|---|
committer | Weining Lu <luweining@loongson.cn> | 2022-12-08 10:21:20 +0800 |
commit | ecd0337854b98014df1953f644650480a898e7de (patch) | |
tree | c855d4df7bd567c1454c88cffa00eed279ae8a8f /libcxxabi | |
parent | 7c36fcfbbae1fc9b55257f621dbb0bc8d241e5c9 (diff) | |
download | llvm-ecd0337854b98014df1953f644650480a898e7de.tar.gz |
[demangler][LoongArch] Correct the mangled_size for long double
The size of long double in LoongArch (both LA32 and LA64) is 16 bytes, thus
the mangled_size should be 32.
This is same as RISCV's change in D126480.
Reviewed By: xen0n
Differential Revision: https://reviews.llvm.org/D138981
Diffstat (limited to 'libcxxabi')
-rw-r--r-- | libcxxabi/src/demangle/ItaniumDemangle.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxxabi/src/demangle/ItaniumDemangle.h b/libcxxabi/src/demangle/ItaniumDemangle.h index 339982584f5f..66213c63f2f8 100644 --- a/libcxxabi/src/demangle/ItaniumDemangle.h +++ b/libcxxabi/src/demangle/ItaniumDemangle.h @@ -5119,7 +5119,7 @@ template <> struct FloatData<long double> { #if defined(__mips__) && defined(__mips_n64) || defined(__aarch64__) || \ - defined(__wasm__) || defined(__riscv) + defined(__wasm__) || defined(__riscv) || defined(__loongarch__) static const size_t mangled_size = 32; #elif defined(__arm__) || defined(__mips__) || defined(__hexagon__) static const size_t mangled_size = 16; |