[clang] [clang] fix(93002): clang/lib/Sema/SemaOpenMP.cpp:7405: Possible & / && mixup ? (PR #93093)
Oleksandr T. via cfe-commits
cfe-commits at lists.llvm.org
Wed May 22 13:48:11 PDT 2024
https://github.com/a-tarasyuk created https://github.com/llvm/llvm-project/pull/93093
Fixes #93002
>From 19c54263be42fea58403d30030af76da0355ef1e Mon Sep 17 00:00:00 2001
From: Oleksandr T <oleksandr.tarasiuk at outlook.com>
Date: Wed, 22 May 2024 23:47:19 +0300
Subject: [PATCH] fix(93002): switch & to && for boolean values
---
clang/lib/Sema/SemaOpenMP.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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