[clang] 45a8608 - [OpenMP] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off build after D109635
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 16 12:36:51 PDT 2021
Author: Fangrui Song
Date: 2021-09-16T12:36:45-07:00
New Revision: 45a8608d7ba4519ce890b74db20087ba22343c50
URL: https://github.com/llvm/llvm-project/commit/45a8608d7ba4519ce890b74db20087ba22343c50
DIFF: https://github.com/llvm/llvm-project/commit/45a8608d7ba4519ce890b74db20087ba22343c50.diff
LOG: [OpenMP] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off build after D109635
Added:
Modified:
clang/lib/Sema/SemaOpenMP.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp
index 3fcc7abca5c5..a22462bd68fc 100644
--- a/clang/lib/Sema/SemaOpenMP.cpp
+++ b/clang/lib/Sema/SemaOpenMP.cpp
@@ -739,6 +739,7 @@ class DSAStackTy {
for (llvm::omp::TraitProperty Trait : llvm::reverse(Traits)) {
llvm::omp::TraitProperty Top = ConstructTraits.pop_back_val();
assert(Top == Trait && "Something left a trait on the stack!");
+ (void)Trait;
(void)Top;
}
}
More information about the cfe-commits
mailing list