[clang] Fix build warning for '[X86] Support EGPR for inline assembly. (#92338)' (PR #93777)

Freddy Ye via cfe-commits cfe-commits at lists.llvm.org
Thu May 30 00:24:44 PDT 2024


https://github.com/FreddyLeaf created https://github.com/llvm/llvm-project/pull/93777

None

>From 7f5ca96930fe48617115e2403094e2724aa7b9cd Mon Sep 17 00:00:00 2001
From: Freddy Ye <freddy.ye at intel.com>
Date: Thu, 30 May 2024 15:20:18 +0800
Subject: [PATCH] Fix build warning for '[X86] Support EGPR for inline
 assembly. (#92338)'

---
 clang/lib/Basic/Targets/X86.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/clang/lib/Basic/Targets/X86.cpp b/clang/lib/Basic/Targets/X86.cpp
index 34d249ed27ce5..036a655a4d073 100644
--- a/clang/lib/Basic/Targets/X86.cpp
+++ b/clang/lib/Basic/Targets/X86.cpp
@@ -1765,6 +1765,7 @@ std::string X86TargetInfo::convertConstraint(const char *&Constraint) const {
       // to the next constraint.
       return std::string("^") + std::string(Constraint++, 2);
     }
+    [[fallthrough]];
   case 'j':
     switch (Constraint[1]) {
     default:



More information about the cfe-commits mailing list