[libcxx-commits] [PATCH] D74163: [demangler] PPC and S390: Fix parsing of e-prefixed long double literals
Xing Xue via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Apr 13 14:41:38 PDT 2020
xingxue updated this revision to Diff 257114.
xingxue added a comment.
Addressed comments:
- Added a comment as suggested.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74163/new/
https://reviews.llvm.org/D74163
Files:
libcxxabi/src/demangle/ItaniumDemangle.h
Index: libcxxabi/src/demangle/ItaniumDemangle.h
===================================================================
--- libcxxabi/src/demangle/ItaniumDemangle.h
+++ libcxxabi/src/demangle/ItaniumDemangle.h
@@ -4225,7 +4225,13 @@
return getDerived().template parseFloatingLiteral<double>();
case 'e':
++First;
+#if defined(__powerpc__) || defined(__s390__)
+ // Handle cases where long doubles encoded with e have the same size
+ // and representation as doubles.
+ return getDerived().template parseFloatingLiteral<double>();
+#else
return getDerived().template parseFloatingLiteral<long double>();
+#endif
case '_':
if (consumeIf("_Z")) {
Node *R = getDerived().parseEncoding();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74163.257114.patch
Type: text/x-patch
Size: 722 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200413/3901135b/attachment.bin>
More information about the libcxx-commits
mailing list