[llvm-branch-commits] [clang] 41c36d9 - [clang] Fix unused variable warning in MS mangler from constant matrix patch

Tom Stellard via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat May 10 13:06:14 PDT 2025


Author: Reid Kleckner
Date: 2025-05-10T13:05:55-07:00
New Revision: 41c36d94080488cc938b1c1697c7e8353405cd75

URL: https://github.com/llvm/llvm-project/commit/41c36d94080488cc938b1c1697c7e8353405cd75
DIFF: https://github.com/llvm/llvm-project/commit/41c36d94080488cc938b1c1697c7e8353405cd75.diff

LOG: [clang] Fix unused variable warning in MS mangler from constant matrix patch

(cherry picked from commit ccdd55c518277d749eff878ffcb5ca3de55c2a60)

Added: 
    

Modified: 
    clang/lib/AST/MicrosoftMangle.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp
index 74c995f2f97f0..cb35dbd611204 100644
--- a/clang/lib/AST/MicrosoftMangle.cpp
+++ b/clang/lib/AST/MicrosoftMangle.cpp
@@ -3553,7 +3553,6 @@ void MicrosoftCXXNameMangler::mangleType(const DependentSizedExtVectorType *T,
 void MicrosoftCXXNameMangler::mangleType(const ConstantMatrixType *T,
                                          Qualifiers quals, SourceRange Range) {
   QualType EltTy = T->getElementType();
-  const BuiltinType *ET = EltTy->getAs<BuiltinType>();
 
   llvm::SmallString<64> TemplateMangling;
   llvm::raw_svector_ostream Stream(TemplateMangling);


        


More information about the llvm-branch-commits mailing list