forked from OSchip/llvm-project
remove the const quantifier before temp variable
PiperOrigin-RevId: 240997262
This commit is contained in:
parent
f93a5be65f
commit
a38792f7d1
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue