[OpenMP] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off build after D109635

This commit is contained in:
Fangrui Song 2021-09-16 12:36:45 -07:00
parent 88cb3e2cb6
commit 45a8608d7b
1 changed files with 1 additions and 0 deletions

View File

@ -739,6 +739,7 @@ public:
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;
}
}