From: Feng Liu Date: Fri, 29 Mar 2019 16:54:11 +0000 (-0700) Subject: remove the const quantifier before temp variable X-Git-Tag: llvmorg-11-init~1466^2~2075 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a38792f7d13d85d1e9ec58fe10c1fda2a5cbb7d3;p=platform%2Fupstream%2Fllvm.git remove the const quantifier before temp variable PiperOrigin-RevId: 240997262 --- diff --git a/mlir/lib/TableGen/Pattern.cpp b/mlir/lib/TableGen/Pattern.cpp index 853f394..a6c4095 100644 --- a/mlir/lib/TableGen/Pattern.cpp +++ b/mlir/lib/TableGen/Pattern.cpp @@ -261,7 +261,7 @@ std::vector tblgen::Pattern::getConstraints() const { int tblgen::Pattern::getBenefit() const { // The default benefit value is a heristic with number of ops in the source // pattern. - const int defaultBenefit = getSourcePattern().getNumOps(); + int defaultBenefit = getSourcePattern().getNumOps(); llvm::DagInit *delta = def.getValueAsDag("benefitDelta"); if (delta->getNumArgs() != 1 || !isa(delta->getArg(0))) PrintFatalError(def.getLoc(), "The 'AddedBenefit' can only be an integer");