projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df344e1
)
[flang] Remove unused variable lastPrivBlock (NFC)
author
Kazu Hirata
<kazu@google.com>
Tue, 26 Jul 2022 03:52:22 +0000
(20:52 -0700)
committer
Kazu Hirata
<kazu@google.com>
Tue, 26 Jul 2022 03:52:22 +0000
(20:52 -0700)
This fixes the warning:
llvm-project/flang/lib/Lower/OpenMP.cpp:94:10: error: unused
variable 'lastPrivBlock' [-Werror,-Wunused-variable]
flang/lib/Lower/OpenMP.cpp
patch
|
blob
|
history
diff --git
a/flang/lib/Lower/OpenMP.cpp
b/flang/lib/Lower/OpenMP.cpp
index
9494286
..
0016d8c
100644
(file)
--- a/
flang/lib/Lower/OpenMP.cpp
+++ b/
flang/lib/Lower/OpenMP.cpp
@@
-91,7
+91,6
@@
static bool privatizeVars(Op &op, Fortran::lower::AbstractConverter &converter,
firOpBuilder.setInsertionPointToStart(firOpBuilder.getAllocaBlock());
bool hasFirstPrivateOp = false;
bool hasLastPrivateOp = false;
- Block *lastPrivBlock = nullptr;
// We need just one ICmpOp for multiple LastPrivate clauses.
mlir::arith::CmpIOp cmpOp;