Skip to content

Commit

Permalink
Fix build warnings
Browse files Browse the repository at this point in the history
Delete unused constexpr ints in LowerToLLVMDialect.
Add (void)toStringRef for non-debug builds.

Fixes tensorflow/mlir#232.

PiperOrigin-RevId: 280671014
  • Loading branch information
Nicolas Vasilache authored and tensorflower-gardener committed Nov 15, 2019
1 parent 88843ae commit 615b9cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mlir/lib/Dialect/Linalg/Analysis/DependenceAnalysis.cpp
Expand Up @@ -112,6 +112,7 @@ void LinalgDependenceGraph::addDependenceElem(DependenceType dt,
LinalgOpView dependentOpView) {
LLVM_DEBUG(dbgs() << "\nAdd dep type " << toStringRef(dt) << ":\t"
<< *indexingOpView.op << " -> " << *dependentOpView.op);
(void)toStringRef;
dependencesFromGraphs[dt][indexingOpView.op].push_back(
LinalgDependenceGraphElem{dependentOpView, indexingOpView.view});
dependencesIntoGraphs[dt][dependentOpView.op].push_back(
Expand Down

0 comments on commit 615b9cc

Please sign in to comment.