[flang-commits] [flang] 4068a96 - [OpenMP] [Semantics] [Flang] Fix build error caused by unused variable.
Raghu Maddhipatla via flang-commits
flang-commits at lists.llvm.org
Fri Aug 4 13:17:25 PDT 2023
Author: Raghu Maddhipatla
Date: 2023-08-04T15:17:17-05:00
New Revision: 4068a96b7c78cee20f6e861330118b5572927447
URL: https://github.com/llvm/llvm-project/commit/4068a96b7c78cee20f6e861330118b5572927447
DIFF: https://github.com/llvm/llvm-project/commit/4068a96b7c78cee20f6e861330118b5572927447.diff
LOG: [OpenMP] [Semantics] [Flang] Fix build error caused by unused variable.
Fixed build error caused by unused variable 'dataRef' in https://reviews.llvm.org/D155133
Reviewed By: kiranchandramohan
Differential Revision: https://reviews.llvm.org/D157126
Added:
Modified:
flang/lib/Semantics/check-omp-structure.cpp
Removed:
################################################################################
diff --git a/flang/lib/Semantics/check-omp-structure.cpp b/flang/lib/Semantics/check-omp-structure.cpp
index 0c838a968812f1..0accfa5083a9d6 100644
--- a/flang/lib/Semantics/check-omp-structure.cpp
+++ b/flang/lib/Semantics/check-omp-structure.cpp
@@ -2643,8 +2643,7 @@ void OmpStructureChecker::CheckStructureElement(
common::visit(
common::visitors{
[&](const parser::Designator &designator) {
- if (const auto *dataRef{
- std::get_if<parser::DataRef>(&designator.u)}) {
+ if (std::get_if<parser::DataRef>(&designator.u)) {
if (parser::Unwrap<parser::StructureComponent>(ompObject)) {
context_.Say(GetContext().clauseSource,
"A variable that is part of another variable "
More information about the flang-commits
mailing list