[clang] 32b821c - [AST] Fix a warning

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 4 16:03:20 PST 2024


Author: Kazu Hirata
Date: 2024-12-04T16:03:14-08:00
New Revision: 32b821cab3064ae9a77a0f1d9916a286c7543735

URL: https://github.com/llvm/llvm-project/commit/32b821cab3064ae9a77a0f1d9916a286c7543735
DIFF: https://github.com/llvm/llvm-project/commit/32b821cab3064ae9a77a0f1d9916a286c7543735.diff

LOG: [AST] Fix a warning

This patch fixes:

  clang/lib/AST/MicrosoftMangle.cpp:1006:11: error: enumeration value
  'S_PPCDoubleDoubleLegacy' not handled in switch [-Werror,-Wswitch]

Added: 
    

Modified: 
    clang/lib/AST/MicrosoftMangle.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp
index 7642ff7ca606cd..edeeaeaa9ae17c 100644
--- a/clang/lib/AST/MicrosoftMangle.cpp
+++ b/clang/lib/AST/MicrosoftMangle.cpp
@@ -1014,6 +1014,7 @@ void MicrosoftCXXNameMangler::mangleFloat(llvm::APFloat Number) {
   case APFloat::S_x87DoubleExtended: Out << 'X'; break;
   case APFloat::S_IEEEquad: Out << 'Y'; break;
   case APFloat::S_PPCDoubleDouble: Out << 'Z'; break;
+  case APFloat::S_PPCDoubleDoubleLegacy:
   case APFloat::S_Float8E5M2:
   case APFloat::S_Float8E4M3:
   case APFloat::S_Float8E4M3FN:


        


More information about the cfe-commits mailing list