[clang] 87a2413 - [AST] Fix a warning
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 2 12:21:29 PDT 2024
Author: Kazu Hirata
Date: 2024-10-02T12:21:23-07:00
New Revision: 87a24136140496e30aa867074bdee1be1f3b3294
URL: https://github.com/llvm/llvm-project/commit/87a24136140496e30aa867074bdee1be1f3b3294
DIFF: https://github.com/llvm/llvm-project/commit/87a24136140496e30aa867074bdee1be1f3b3294.diff
LOG: [AST] Fix a warning
This patch fixes:
clang/lib/AST/MicrosoftMangle.cpp:1008:11: error: enumeration value
'S_Float8E8M0FNU' 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 e4c8663c134fda..4ccf3f76bf0ce2 100644
--- a/clang/lib/AST/MicrosoftMangle.cpp
+++ b/clang/lib/AST/MicrosoftMangle.cpp
@@ -1024,6 +1024,7 @@ void MicrosoftCXXNameMangler::mangleFloat(llvm::APFloat Number) {
case APFloat::S_Float8E4M3B11FNUZ:
case APFloat::S_Float8E3M4:
case APFloat::S_FloatTF32:
+ case APFloat::S_Float8E8M0FNU:
case APFloat::S_Float6E3M2FN:
case APFloat::S_Float6E2M3FN:
case APFloat::S_Float4E2M1FN:
More information about the cfe-commits
mailing list