[PATCH] D143684: Add missing cases to clang switch after D141863

Krzysztof Drewniak via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 9 14:57:13 PST 2023


krzysz00 created this revision.
Herald added a project: All.
krzysz00 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Turns out there's a switch on APFloat semantics in clang I wasn't
aware of, fix the build error here.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143684

Files:
  clang/lib/AST/MicrosoftMangle.cpp


Index: clang/lib/AST/MicrosoftMangle.cpp
===================================================================
--- clang/lib/AST/MicrosoftMangle.cpp
+++ clang/lib/AST/MicrosoftMangle.cpp
@@ -843,6 +843,8 @@
   case APFloat::S_PPCDoubleDouble: Out << 'Z'; break;
   case APFloat::S_Float8E5M2:
   case APFloat::S_Float8E4M3FN:
+  case APFloat::S_Float8E5M2FNUZ:
+  case APFloat::S_Float8E4M3FNUZ:
     llvm_unreachable("Tried to mangle unexpected APFloat semantics");
   }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143684.496248.patch
Type: text/x-patch
Size: 472 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230209/fc5b5dbe/attachment-0001.bin>


More information about the cfe-commits mailing list