Skip to content

Commit aa33c09

Browse files
[flang] Fix a warning
This patch fixes: flang/lib/Optimizer/OpenMP/DoConcurrentConversion.cpp:184:18: error: unused variable 'loc' [-Werror,-Wunused-variable]
1 parent c18994c commit aa33c09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flang/lib/Optimizer/OpenMP/DoConcurrentConversion.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ bool isPerfectlyNested(fir::DoLoopOp outerLoop, fir::DoLoopOp innerLoop) {
181181
// `innerLoop` + the `fir.result` terminator. In other words, `innerLoop` is
182182
// perfectly nested inside `outerLoop`.
183183
bool result = (outerLoopBodySet == indVarSet);
184-
mlir::Location loc = outerLoop.getLoc();
185-
LLVM_DEBUG(DBGS() << "Loop pair starting at location " << loc << " is"
186-
<< (result ? "" : " not") << " perfectly nested\n");
184+
LLVM_DEBUG(DBGS() << "Loop pair starting at location " << outerLoop.getLoc()
185+
<< " is" << (result ? "" : " not")
186+
<< " perfectly nested\n");
187187

188188
return result;
189189
}

0 commit comments

Comments
 (0)