remove the const quantifier before temp variable

PiperOrigin-RevId: 240997262
This commit is contained in:
Feng Liu 2019-03-29 09:54:11 -07:00 committed by jpienaar
parent f93a5be65f
commit a38792f7d1
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ std::vector<tblgen::AppliedConstraint> 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<llvm::IntInit>(delta->getArg(0)))
PrintFatalError(def.getLoc(), "The 'AddedBenefit' can only be an integer");