[all-commits] [llvm/llvm-project] 842e48: [demangler][RISCV] Fix for long double
Piggy via All-commits
all-commits at lists.llvm.org
Thu May 26 22:53:48 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 842e48bd65770f0368ee0d1ca7ee34dbd8f0ff03
https://github.com/llvm/llvm-project/commit/842e48bd65770f0368ee0d1ca7ee34dbd8f0ff03
Author: Piggy NL <piggynl at outlook.com>
Date: 2022-05-27 (Fri, 27 May 2022)
Changed paths:
M libcxxabi/src/demangle/ItaniumDemangle.h
M llvm/include/llvm/Demangle/ItaniumDemangle.h
Log Message:
-----------
[demangler][RISCV] Fix for long double
Summary:
The size of long double in RISCV (both RV32 and RV64) is 16 bytes, thus
the mangled_size shouble be 32.
This patch will fix test case
"_ZN5test01hIfEEvRAcvjplstT_Le4001a000000000000000E_c"
in test_demangle.pass.cpp, which is expected to be invalid but demangler
returned "void test0::h<float>(char (&) [(unsigned int)((sizeof (float))
+ (0x0.000000004001ap-16382L))])" in RISCV environment without this patch.
Reviewed By: urnathan
Differential Revision: https://reviews.llvm.org/D126480
More information about the All-commits
mailing list