[clang] 7b77301 - [clang] fix(93002): clang/lib/Sema/SemaOpenMP.cpp:7405: Possible & / && mixup ? (#93093)
via cfe-commits
cfe-commits at lists.llvm.org
Thu May 30 05:58:38 PDT 2024
Author: Oleksandr T
Date: 2024-05-30T07:58:34-05:00
New Revision: 7b77301c22f5d4f25c5e96834bf7d6117c608228
URL: https://github.com/llvm/llvm-project/commit/7b77301c22f5d4f25c5e96834bf7d6117c608228
DIFF: https://github.com/llvm/llvm-project/commit/7b77301c22f5d4f25c5e96834bf7d6117c608228.diff
LOG: [clang] fix(93002): clang/lib/Sema/SemaOpenMP.cpp:7405: Possible & / && mixup ? (#93093)
Fixes #93002
Added:
Modified:
clang/lib/Sema/SemaOpenMP.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp
index bab61e8fd54e8..e74f252f54049 100644
--- a/clang/lib/Sema/SemaOpenMP.cpp
+++ b/clang/lib/Sema/SemaOpenMP.cpp
@@ -7402,7 +7402,7 @@ void SemaOpenMP::ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope(
// Template specialization is an extension, check if we do it.
bool IsTemplated = !TemplateParamLists.empty();
- if (IsTemplated &
+ if (IsTemplated &&
!DVScope.TI->isExtensionActive(
llvm::omp::TraitProperty::implementation_extension_allow_templates))
return;
More information about the cfe-commits
mailing list