[clang] 7c5d5c0 - [Sema] Fix warning in SemaOpenACC.cpp (#112481)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 16 02:01:37 PDT 2024
Author: Karl-Johan Karlsson
Date: 2024-10-16T11:01:33+02:00
New Revision: 7c5d5c08181f399858d918d6910c021af4ec36c0
URL: https://github.com/llvm/llvm-project/commit/7c5d5c08181f399858d918d6910c021af4ec36c0
DIFF: https://github.com/llvm/llvm-project/commit/7c5d5c08181f399858d918d6910c021af4ec36c0.diff
LOG: [Sema] Fix warning in SemaOpenACC.cpp (#112481)
Fix gcc warning:
clang/lib/Sema/SemaOpenACC.cpp:2208:5: warning: this statement may fall
through [-Wimplicit-fallthrough=]
Added:
Modified:
clang/lib/Sema/SemaOpenACC.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaOpenACC.cpp b/clang/lib/Sema/SemaOpenACC.cpp
index 22aedbc70df8cc..d33b0d0c1c3018 100644
--- a/clang/lib/Sema/SemaOpenACC.cpp
+++ b/clang/lib/Sema/SemaOpenACC.cpp
@@ -2216,7 +2216,7 @@ ExprResult SemaOpenACC::CheckGangExpr(OpenACCGangKind GK, Expr *E) {
case OpenACCGangKind::Static:
return CheckGangStaticExpr(*this, E);
}
- }
+ } break;
default:
llvm_unreachable("Non compute construct in active compute construct?");
}
More information about the cfe-commits
mailing list