AsmPrinter: avoid unused-variable warning

The value defined in a loop was not being used and the function producing it
re-evaluated instead. Use the value to avoid both the warning and the
re-evaluation.

PiperOrigin-RevId: 274794459
This commit is contained in:
Alex Zinenko 2019-10-15 06:50:34 -07:00 committed by A. Unique TensorFlower
parent 300112e135
commit 98815cfdd9
1 changed files with 1 additions and 1 deletions

View File

@ -1862,7 +1862,7 @@ void IntegerSet::print(raw_ostream &os) const {
void Value::print(raw_ostream &os) {
if (auto *op = getDefiningOp())
return getDefiningOp()->print(os);
return op->print(os);
// TODO: Improve this.
assert(isa<BlockArgument>(*this));
os << "<block argument>\n";